mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 12:42:34 +01:00
Fixed a slight ugliness, use dir() instead of __dict__.
This commit is contained in:
parent
6f7e3e53c1
commit
97ce807088
@ -62,7 +62,7 @@ class MiscCommands(callbacks.Privmsg):
|
||||
if cb.name().lower().startswith(name) and \
|
||||
not issubclass(cls, callbacks.PrivmsgRegexp) and \
|
||||
issubclass(cls, callbacks.Privmsg):
|
||||
commands = [x for x in cls.__dict__
|
||||
commands = [x for x in dir(cls)
|
||||
if cb.isCommand(x) and \
|
||||
hasattr(getattr(cb, x), '__doc__')]
|
||||
commands.sort()
|
||||
|
Loading…
Reference in New Issue
Block a user