From a714fce09d1b5756e518f3c87db144c41acbbd9e Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Tue, 30 Sep 2003 13:51:32 +0000 Subject: [PATCH] Fixed cmdstats to make sure only canonicalNames get in. --- plugins/Status.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/Status.py b/plugins/Status.py index 56c1fb71d..381b57ba2 100644 --- a/plugins/Status.py +++ b/plugins/Status.py @@ -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()