From a0e0ca2c5f30cbd6fd8bed41a675fd2fa88a7b19 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Fri, 12 Sep 2003 19:15:33 +0000 Subject: [PATCH] Forgot to check if conf.replyWhenNotCommand is True before deciding not to respond if there's a non-command in the dealio. --- src/callbacks.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/callbacks.py b/src/callbacks.py index 7b5303689..09ede63bc 100644 --- a/src/callbacks.py +++ b/src/callbacks.py @@ -578,10 +578,11 @@ class Privmsg(irclib.IrcCallback): if msg: try: args = tokenize(s) - for command in getCommands(args): - command = canonicalName(command) - if not findCallbackForCommand(irc, command): - return + if conf.replyWhenNotCommand: + for command in getCommands(args): + command = canonicalName(command) + if not findCallbackForCommand(irc, command): + return self.Proxy(irc, msg, args) except SyntaxError, e: irc.queueMsg(reply(msg, debug.exnToString(e)))