From 7a65e937b4d848798683a1dba0a3111017ec5b72 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Mon, 16 Aug 2004 20:02:26 +0000 Subject: [PATCH] Hax0r. Watch this revision, I have a feeling we're going to revert this change at some point. --- src/Misc.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Misc.py b/src/Misc.py index fbebbe288..9a19ae4c8 100755 --- a/src/Misc.py +++ b/src/Misc.py @@ -196,7 +196,7 @@ class Misc(callbacks.Privmsg): return command = callbacks.canonicalName(name) # Users might expect "@help @list" to work. - command = command.lstrip(conf.supybot.prefixChars()) + # command = command.lstrip(conf.supybot.prefixChars()) cbs = callbacks.findCallbackForCommand(irc, command) if len(cbs) > 1: tokens = [command] @@ -211,7 +211,10 @@ class Misc(callbacks.Privmsg): 'you want help with.'% utils.commaAndify(names)) return else: - assert len(tokens) == 2 + if len(tokens) == 1: + # It's a src plugin that wasn't disambiguated. + tokens.append(tokens[0]) + assert len(tokens) == 2, tokens cb = irc.getCallback(tokens[0]) method = getattr(cb, tokens[1]) getHelp(method)