Skip to content

Setting plugin-specific prefixes #98

pfaffle opened this Issue Sep 11, 2012 · 1 comment

2 participants

pfaffle commented Sep 11, 2012

In the newest version of cinch it appears that setting a plugin-specific prefix no longer works the same way. Copying your example code in verbatim and running it produces the error:
bot.rb:7:in <class:SomeCommand>': wrong number of arguments (1 for 0) (ArgumentError)
from bot.rb:4:in


I have Cinch 2.0.3 and Ruby 1.9.2p290 installed. Is there something I'm missing, or can you provide some new example code for setting a plugin-specific prefix? Thanks!

Cinch IRC Framework member

It has to be self.prefix = ... or set :prefix, ... instead. I'll fix the example when I get to it.

@FiXato FiXato added a commit to FiXato/cinch that referenced this issue Nov 1, 2012
@FiXato FiXato Fixing incorrect prefix syntax
The prefix should be set through 'set'.
Fixes issue #98 on the original repo.
@dominikh dominikh closed this in d26fc02 Nov 24, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.