diff --git a/src/MiscCommands.py b/src/MiscCommands.py index ac1cbf89f..7aa5bfd62 100755 --- a/src/MiscCommands.py +++ b/src/MiscCommands.py @@ -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()