mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 11:42:52 +01:00
Slight cleanups.
This commit is contained in:
parent
f166ce8655
commit
d9c535f2bc
@ -473,8 +473,6 @@ class IrcObjectProxy(RichReplyMethods):
|
|||||||
name = canonicalName(self.args[0])
|
name = canonicalName(self.args[0])
|
||||||
cbs = findCallbackForCommand(self, name)
|
cbs = findCallbackForCommand(self, name)
|
||||||
if len(cbs) == 0:
|
if len(cbs) == 0:
|
||||||
if self.irc.nick == self.msg.nick and not world.testing:
|
|
||||||
return
|
|
||||||
for cb in self.irc.callbacks:
|
for cb in self.irc.callbacks:
|
||||||
if isinstance(cb, PrivmsgRegexp):
|
if isinstance(cb, PrivmsgRegexp):
|
||||||
for (r, m) in cb.res:
|
for (r, m) in cb.res:
|
||||||
@ -499,7 +497,7 @@ class IrcObjectProxy(RichReplyMethods):
|
|||||||
else:
|
else:
|
||||||
if len(cbs) > 1:
|
if len(cbs) > 1:
|
||||||
for cb in cbs:
|
for cb in cbs:
|
||||||
if cb.name().lower() == name:
|
if canonicalName(cb.name()) == name:
|
||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
# This should've been caught earlier, that's why we
|
# This should've been caught earlier, that's why we
|
||||||
|
Loading…
Reference in New Issue
Block a user