From 97ce8070887b81c1f1a37ad98914faca5b61b953 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Thu, 29 May 2003 16:36:34 +0000 Subject: [PATCH] Fixed a slight ugliness, use dir() instead of __dict__. --- src/MiscCommands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()