From c88a7c3609b0ca3acb77ff4badfb1a73ba02e218 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Sun, 4 Jan 2004 11:52:12 +0000 Subject: [PATCH] Backing out canonicalName in isCommand. --- src/callbacks.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/callbacks.py b/src/callbacks.py index 269492456..1ad474663 100644 --- a/src/callbacks.py +++ b/src/callbacks.py @@ -653,7 +653,9 @@ class Privmsg(irclib.IrcCallback): """Returns whether a given method name is a command in this plugin.""" # This function is ugly, but I don't want users to call methods like # doPrivmsg or __init__ or whatever, and this is good to stop them. - methodName = canonicalName(methodName) + + # Don't canonicalize this name: consider outFilter(self, irc, msg). + # methodName = canonicalName(methodName) if hasattr(self, methodName): method = getattr(self, methodName) if inspect.ismethod(method):