Handle variable prefixChars correct whenNotCommand.

This commit is contained in:
Jeremy Fincher 2004-05-07 15:08:30 +00:00
parent 25ec8f739f
commit 81d1d56b04

View File

@ -66,7 +66,8 @@ class Misc(callbacks.Privmsg):
# to log this in that case anyway, it being a nested command. # to log this in that case anyway, it being a nested command.
self.log.info('Not replying to %s, not a command.' % tokens[0]) self.log.info('Not replying to %s, not a command.' % tokens[0])
if not isinstance(irc.irc, irclib.Irc): if not isinstance(irc.irc, irclib.Irc):
irc.reply('[%s]' % ' '.join(tokens)) brackets = conf.supybot.reply.brackets.get(msg.args[0])()
irc.reply(''.join([brackets[0],' '.join(tokens), brackets[1]]))
def list(self, irc, msg, args): def list(self, irc, msg, args):
"""[--private] [<module name>] """[--private] [<module name>]