Fixed some help strings.

This commit is contained in:
Jeremy Fincher 2003-10-22 18:49:51 +00:00
parent e39a8c4237
commit 1657339433

View File

@ -177,9 +177,8 @@ class Misc(callbacks.Privmsg):
def help(self, irc, msg, args): def help(self, irc, msg, args):
"""[<plugin>] <command> """[<plugin>] <command>
This command gives a much more useful description than the simple This command gives a useful description of what <command> does.
argument list given by the command 'syntax'. <plugin> is only <plugin> is only necessary if the command is in more than one plugin.
necessary if the command is in more than one plugin.
""" """
def helpFor(method): def helpFor(method):
doclines = method.__doc__.splitlines() doclines = method.__doc__.splitlines()
@ -214,10 +213,10 @@ class Misc(callbacks.Privmsg):
command = command.lstrip(conf.prefixChars) command = command.lstrip(conf.prefixChars)
cbs = callbacks.findCallbackForCommand(irc, command) cbs = callbacks.findCallbackForCommand(irc, command)
if len(cbs) > 1: if len(cbs) > 1:
irc.error(msg, 'That command exists in the %s %s. Please specify ' irc.error(msg, 'That command exists in the %s plugins. '
'exactly which plugin command you want help with.'%\ 'Please specify exactly which plugin command '
(utils.commaAndify([cb.name() for cb in cbs]), 'you want help with.'% \
utils.nItems(len(cbs), 'plugin'))) utils.commaAndify([cb.name() for cb in cbs]))
return return
elif not cbs: elif not cbs:
irc.error(msg, 'There is no such command %s.' % command) irc.error(msg, 'There is no such command %s.' % command)