From b3169b7c5439d4afdad54433dfe99a53d53ccec9 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Wed, 11 Aug 2004 07:43:28 +0000 Subject: [PATCH] Forgot chanPlugin. Yay, PyChecker. --- src/callbacks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/callbacks.py b/src/callbacks.py index 9b1c51782..86306318c 100644 --- a/src/callbacks.py +++ b/src/callbacks.py @@ -296,10 +296,10 @@ def tokenize(s, brackets=None, channel=None): tokens = brackets if conf.channelValue(conf.supybot.reply.pipeSyntax, channel): tokens = '%s|' % tokens + log.stat('tokenize took %s seconds.' % (time.time() - start)) return Tokenizer(tokens).tokenize(s) except ValueError, e: raise SyntaxError, str(e) - log.stat('tokenize took %s seconds.' % (time.time() - start)) def getCommands(tokens): """Given tokens as output by tokenize, returns the command names.""" @@ -360,7 +360,7 @@ def checkCommandCapability(msg, cb, command): chanCommand = ircdb.makeChannelCapability(channel, command) chanPluginCommand = ircdb.makeChannelCapability(channel, pluginCommand) - checkAtEnd += [chanCommand, chanPluginCommand] + checkAtEnd += [chanCommand, chanPlugin, chanPluginCommand] default &= ircdb.channels.getChannel(channel).defaultAllow return not (default or \ any(lambda x: ircdb.checkCapability(msg.prefix, x),