mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-28 05:32:51 +01:00
Backing out canonicalName in isCommand.
This commit is contained in:
parent
9453c893a8
commit
c88a7c3609
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user