src/callbacks.py: Methods whose name != their canonical name should not be considered command methods (and therefore won't be listed in the output from Misc.list).

This commit is contained in:
James Vega 2006-08-28 13:15:21 +00:00
parent 3908e989c5
commit ea6000b407

View File

@ -1090,6 +1090,8 @@ class Commands(BasePlugin):
# name = canonicalName(name) # name = canonicalName(name)
if self.isDisabled(name): if self.isDisabled(name):
return False return False
if name != canonicalName(name):
return False
if hasattr(self, name): if hasattr(self, name):
method = getattr(self, name) method = getattr(self, name)
if inspect.ismethod(method): if inspect.ismethod(method):