mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-23 10:34:19 +01:00
Fixed a bugz0r of no arguments given to Misc.help.
This commit is contained in:
parent
d6949c95c1
commit
4c555d40c1
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user