mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 12:42:34 +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)
|
(maxL, cbs) = irc.findCallbacksForArgs(command)
|
||||||
if maxL == command:
|
if maxL == command:
|
||||||
if not cbs:
|
if len(cbs) > 1:
|
||||||
irc.error(format('There is no command %q.',
|
|
||||||
callbacks.formatCommand(command)))
|
|
||||||
elif len(cbs) > 1:
|
|
||||||
names = sorted([cb.name() for cb in cbs])
|
names = sorted([cb.name() for cb in cbs])
|
||||||
irc.error(format('That command exists in the %L plugins. '
|
irc.error(format('That command exists in the %L plugins. '
|
||||||
'Please specify exactly which plugin command '
|
'Please specify exactly which plugin command '
|
||||||
'you want help with.', names))
|
'you want help with.', names))
|
||||||
else:
|
else:
|
||||||
|
assert cbs, 'Odd, maxL == command, but no cbs.'
|
||||||
irc.reply(cbs[0].getCommandHelp(command))
|
irc.reply(cbs[0].getCommandHelp(command))
|
||||||
else:
|
else:
|
||||||
irc.reply(cbs[0].getCommandHelp(command))
|
irc.reply('There is no command %q.',
|
||||||
|
callbacks.formatCommand(command))
|
||||||
help = wrap(help, [many('something')])
|
help = wrap(help, [many('something')])
|
||||||
|
|
||||||
def hostmask(self, irc, msg, args, nick):
|
def hostmask(self, irc, msg, args, nick):
|
||||||
|
Loading…
Reference in New Issue
Block a user