From ea6000b407b1899b5463ffc7e50a917bdd58341a Mon Sep 17 00:00:00 2001 From: James Vega Date: Mon, 28 Aug 2006 13:15:21 +0000 Subject: [PATCH] src/callbacks.py: Methods whose name != their canonical name should not be considered command methods (and therefore won't be listed in the output from Misc.list). --- src/callbacks.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/callbacks.py b/src/callbacks.py index 8b3e1568b..eac43fe4d 100644 --- a/src/callbacks.py +++ b/src/callbacks.py @@ -1090,6 +1090,8 @@ class Commands(BasePlugin): # name = canonicalName(name) if self.isDisabled(name): return False + if name != canonicalName(name): + return False if hasattr(self, name): method = getattr(self, name) if inspect.ismethod(method):