mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-30 14:14:37 +01:00
Fixed cmdstats to make sure only canonicalNames get in.
This commit is contained in:
parent
b9a81a3f5e
commit
a714fce09d
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user