mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-18 22:51:01 +01:00
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:
parent
417c1f3ea4
commit
a0e0ca2c5f
@ -578,10 +578,11 @@ class Privmsg(irclib.IrcCallback):
|
|||||||
if msg:
|
if msg:
|
||||||
try:
|
try:
|
||||||
args = tokenize(s)
|
args = tokenize(s)
|
||||||
for command in getCommands(args):
|
if conf.replyWhenNotCommand:
|
||||||
command = canonicalName(command)
|
for command in getCommands(args):
|
||||||
if not findCallbackForCommand(irc, command):
|
command = canonicalName(command)
|
||||||
return
|
if not findCallbackForCommand(irc, command):
|
||||||
|
return
|
||||||
self.Proxy(irc, msg, args)
|
self.Proxy(irc, msg, args)
|
||||||
except SyntaxError, e:
|
except SyntaxError, e:
|
||||||
irc.queueMsg(reply(msg, debug.exnToString(e)))
|
irc.queueMsg(reply(msg, debug.exnToString(e)))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user