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
1 changed files with 2 additions and 0 deletions

View File

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