Fixed some help stuff.

This commit is contained in:
Jeremy Fincher 2004-10-27 07:05:58 +00:00
parent 8324de6da4
commit f4f35f5d7c
2 changed files with 4 additions and 2 deletions

View File

@ -247,7 +247,7 @@ class Misc(callbacks.Privmsg):
'you want help with.'% utils.commaAndify(names))
else:
getHelp(cbs[0])
help = wrap(help, [optional(('plugin', False)), 'commandName'])
help = wrap(help, [optional(('plugin', False)), additional('commandName')])
def hostmask(self, irc, msg, args, nick):
"""[<nick>]

View File

@ -1132,7 +1132,9 @@ class Privmsg(irclib.IrcCallback):
log.stat('%s took %s seconds', name, elapsed)
def getCommandHelp(self, name):
assert self.isCommand(name)
name = canonicalName(name)
assert self.isCommand(name), \
'%s is not a command in %s.' % (name, self.name())
command = self.getCommand(name)
if hasattr(command, 'isDispatcher') and \
command.isDispatcher and self.__doc__: