mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-03-29 10:56:57 +01:00
Make getCommandHelp respect supybot.reply.showSimpleSyntax
This commit is contained in:
parent
026a683dec
commit
338a899782
@ -1199,8 +1199,11 @@ class Commands(BasePlugin):
|
|||||||
|
|
||||||
def getCommandHelp(self, command):
|
def getCommandHelp(self, command):
|
||||||
method = self.getCommandMethod(command)
|
method = self.getCommandMethod(command)
|
||||||
|
help = getHelp
|
||||||
|
if conf.get(conf.supybot.reply.showSimpleSyntax, dynamic.msg.args[0]):
|
||||||
|
help = getSyntax
|
||||||
if hasattr(method, '__doc__'):
|
if hasattr(method, '__doc__'):
|
||||||
return getHelp(method, name=formatCommand(command))
|
return help(method, name=formatCommand(command))
|
||||||
else:
|
else:
|
||||||
return format('The %q command has no help.',formatCommand(command))
|
return format('The %q command has no help.',formatCommand(command))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user