mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-10-12 14:57:25 +02: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 \
|
if cb.name().lower().startswith(name) and \
|
||||||
not issubclass(cls, callbacks.PrivmsgRegexp) and \
|
not issubclass(cls, callbacks.PrivmsgRegexp) and \
|
||||||
issubclass(cls, callbacks.Privmsg):
|
issubclass(cls, callbacks.Privmsg):
|
||||||
commands = [x for x in cls.__dict__
|
commands = [x for x in dir(cls)
|
||||||
if cb.isCommand(x) and \
|
if cb.isCommand(x) and \
|
||||||
hasattr(getattr(cb, x), '__doc__')]
|
hasattr(getattr(cb, x), '__doc__')]
|
||||||
commands.sort()
|
commands.sort()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user