From 338a89978201366a3de50949f327f58ae3cc0438 Mon Sep 17 00:00:00 2001 From: James Vega Date: Mon, 22 Dec 2008 02:20:07 +0000 Subject: [PATCH] Make getCommandHelp respect supybot.reply.showSimpleSyntax --- src/callbacks.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/callbacks.py b/src/callbacks.py index f6700d095..9ad4857ca 100644 --- a/src/callbacks.py +++ b/src/callbacks.py @@ -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))