mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 11:42:52 +01:00
Fixed some help stuff.
This commit is contained in:
parent
8324de6da4
commit
f4f35f5d7c
@ -247,7 +247,7 @@ class Misc(callbacks.Privmsg):
|
|||||||
'you want help with.'% utils.commaAndify(names))
|
'you want help with.'% utils.commaAndify(names))
|
||||||
else:
|
else:
|
||||||
getHelp(cbs[0])
|
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):
|
def hostmask(self, irc, msg, args, nick):
|
||||||
"""[<nick>]
|
"""[<nick>]
|
||||||
|
@ -1132,7 +1132,9 @@ class Privmsg(irclib.IrcCallback):
|
|||||||
log.stat('%s took %s seconds', name, elapsed)
|
log.stat('%s took %s seconds', name, elapsed)
|
||||||
|
|
||||||
def getCommandHelp(self, name):
|
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)
|
command = self.getCommand(name)
|
||||||
if hasattr(command, 'isDispatcher') and \
|
if hasattr(command, 'isDispatcher') and \
|
||||||
command.isDispatcher and self.__doc__:
|
command.isDispatcher and self.__doc__:
|
||||||
|
Loading…
Reference in New Issue
Block a user