Make getCommandHelp respect supybot.reply.showSimpleSyntax

This commit is contained in:
James Vega 2008-12-22 02:20:07 +00:00
parent 026a683dec
commit 338a899782
1 changed files with 4 additions and 1 deletions

View File

@ -1199,8 +1199,11 @@ class Commands(BasePlugin):
def getCommandHelp(self, command):
method = self.getCommandMethod(command)
help = getHelp
if conf.get(conf.supybot.reply.showSimpleSyntax, dynamic.msg.args[0]):
help = getSyntax
if hasattr(method, '__doc__'):
return getHelp(method, name=formatCommand(command))
return help(method, name=formatCommand(command))
else:
return format('The %q command has no help.',formatCommand(command))