Forgot to check if conf.replyWhenNotCommand is True before deciding not to respond if there's a non-command in the dealio.

This commit is contained in:
Jeremy Fincher 2003-09-12 19:15:33 +00:00
parent 417c1f3ea4
commit a0e0ca2c5f

View File

@ -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)))