Fixed a bugz0r of no arguments given to Misc.help.

This commit is contained in:
Jeremy Fincher 2004-10-27 08:15:18 +00:00
parent d6949c95c1
commit 4c555d40c1
1 changed files with 3 additions and 1 deletions

View File

@ -236,7 +236,7 @@ class Misc(callbacks.Privmsg):
getHelp(cb)
else:
irc.reply(cb.getCommandHelp(cb.name()))
else:
elif command:
cbs = irc.findCallbackForCommand(command)
if not cbs:
irc.error('There is no command %s.' % command)
@ -247,6 +247,8 @@ class Misc(callbacks.Privmsg):
'you want help with.'% utils.commaAndify(names))
else:
getHelp(cbs[0])
else:
raise callbacks.ArgumentError
help = wrap(help, [optional(('plugin', False)), additional('commandName')])
def hostmask(self, irc, msg, args, nick):