mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 11:12:47 +01:00
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:
parent
3908e989c5
commit
ea6000b407
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user