mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 19:22:45 +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)
|
# 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):
|
||||||
|
Loading…
Reference in New Issue
Block a user