Fixed cmdstats to make sure only canonicalNames get in.

This commit is contained in:
Jeremy Fincher 2003-09-30 13:51:32 +00:00
parent b9a81a3f5e
commit a714fce09d
1 changed files with 2 additions and 1 deletions

View File

@ -116,7 +116,8 @@ class Status(callbacks.Privmsg):
if isinstance(cb, callbacks.Privmsg) and cb.public:
callbacksPrivmsgs += 1
for attr in dir(cb):
if cb.isCommand(attr):
if cb.isCommand(attr) and \
attr == callbacks.canonicalName(attr):
commands.add(attr)
commands = list(commands)
commands.sort()