From 39349302a6c4ab6d094f86fc109b89a59495a7d4 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Fri, 24 Oct 2003 23:14:27 +0000 Subject: [PATCH] Changed the way the plugin name is reported in help. --- src/callbacks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/callbacks.py b/src/callbacks.py index 316a01573..194a0eb22 100644 --- a/src/callbacks.py +++ b/src/callbacks.py @@ -122,7 +122,7 @@ def getHelp(method, name=None): if name is None: name = method.__name__ doclines = method.__doc__.splitlines() - s = '%s %s %s' % (method.im_self.name(), name, doclines.pop(0)) + s = '%s %s' % (name, doclines.pop(0)) if doclines: doclines = imap(str.strip, ifilter(None, doclines)) help = ' '.join(doclines) @@ -133,7 +133,7 @@ def getSyntax(method, name=None): if name is None: name = method.__name__ doclines = method.__doc__.splitlines() - return '%s %s %s' % (method.im_self.name(), name, doclines[0]) + return '%s %s' % (name, doclines[0]) class RateLimiter: """This class is used to rate limit replies to certain people, in order to