From d9c535f2bc17746f14e09be6ff29e769cb02c0f4 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Tue, 30 Mar 2004 08:02:59 +0000 Subject: [PATCH] Slight cleanups. --- src/callbacks.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/callbacks.py b/src/callbacks.py index 3a99c8050..48b742a0a 100644 --- a/src/callbacks.py +++ b/src/callbacks.py @@ -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