Hax0r. Watch this revision, I have a feeling we're going to revert this change at some point.

This commit is contained in:
Jeremy Fincher 2004-08-16 20:02:26 +00:00
parent dfd929d197
commit 7a65e937b4

View File

@ -196,7 +196,7 @@ class Misc(callbacks.Privmsg):
return return
command = callbacks.canonicalName(name) command = callbacks.canonicalName(name)
# Users might expect "@help @list" to work. # Users might expect "@help @list" to work.
command = command.lstrip(conf.supybot.prefixChars()) # command = command.lstrip(conf.supybot.prefixChars())
cbs = callbacks.findCallbackForCommand(irc, command) cbs = callbacks.findCallbackForCommand(irc, command)
if len(cbs) > 1: if len(cbs) > 1:
tokens = [command] tokens = [command]
@ -211,7 +211,10 @@ class Misc(callbacks.Privmsg):
'you want help with.'% utils.commaAndify(names)) 'you want help with.'% utils.commaAndify(names))
return return
else: 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]) cb = irc.getCallback(tokens[0])
method = getattr(cb, tokens[1]) method = getattr(cb, tokens[1])
getHelp(method) getHelp(method)