mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 11:42:52 +01:00
Fixed help.
This commit is contained in:
parent
ee7ca1668c
commit
1c10d4cd20
@ -170,18 +170,17 @@ class Misc(callbacks.Plugin):
|
||||
"""
|
||||
(maxL, cbs) = irc.findCallbacksForArgs(command)
|
||||
if maxL == command:
|
||||
if not cbs:
|
||||
irc.error(format('There is no command %q.',
|
||||
callbacks.formatCommand(command)))
|
||||
elif len(cbs) > 1:
|
||||
if len(cbs) > 1:
|
||||
names = sorted([cb.name() for cb in cbs])
|
||||
irc.error(format('That command exists in the %L plugins. '
|
||||
'Please specify exactly which plugin command '
|
||||
'you want help with.', names))
|
||||
else:
|
||||
assert cbs, 'Odd, maxL == command, but no cbs.'
|
||||
irc.reply(cbs[0].getCommandHelp(command))
|
||||
else:
|
||||
irc.reply(cbs[0].getCommandHelp(command))
|
||||
irc.reply('There is no command %q.',
|
||||
callbacks.formatCommand(command))
|
||||
help = wrap(help, [many('something')])
|
||||
|
||||
def hostmask(self, irc, msg, args, nick):
|
||||
|
Loading…
Reference in New Issue
Block a user