Slight cleanups.

This commit is contained in:
Jeremy Fincher 2004-03-30 08:02:59 +00:00
parent f166ce8655
commit d9c535f2bc

View File

@ -473,8 +473,6 @@ class IrcObjectProxy(RichReplyMethods):
name = canonicalName(self.args[0])
cbs = findCallbackForCommand(self, name)
if len(cbs) == 0:
if self.irc.nick == self.msg.nick and not world.testing:
return
for cb in self.irc.callbacks:
if isinstance(cb, PrivmsgRegexp):
for (r, m) in cb.res:
@ -499,7 +497,7 @@ class IrcObjectProxy(RichReplyMethods):
else:
if len(cbs) > 1:
for cb in cbs:
if cb.name().lower() == name:
if canonicalName(cb.name()) == name:
break
else:
# This should've been caught earlier, that's why we