Backing out canonicalName in isCommand.

This commit is contained in:
Jeremy Fincher 2004-01-04 11:52:12 +00:00
parent 9453c893a8
commit c88a7c3609

View File

@ -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):