mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 11:42:52 +01:00
callbacks: Only use dynamic.msg if it's not None in getCommandHelp
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
This commit is contained in:
parent
f3dca89500
commit
b3d97ea03e
@ -1200,8 +1200,10 @@ class Commands(BasePlugin):
|
|||||||
def getCommandHelp(self, command):
|
def getCommandHelp(self, command):
|
||||||
method = self.getCommandMethod(command)
|
method = self.getCommandMethod(command)
|
||||||
help = getHelp
|
help = getHelp
|
||||||
if conf.get(conf.supybot.reply.showSimpleSyntax, dynamic.msg.args[0]):
|
m = dynamic.msg
|
||||||
help = getSyntax
|
if m is not None:
|
||||||
|
if conf.get(conf.supybot.reply.showSimpleSyntax, m.args[0]):
|
||||||
|
help = getSyntax
|
||||||
if hasattr(method, '__doc__'):
|
if hasattr(method, '__doc__'):
|
||||||
return help(method, name=formatCommand(command))
|
return help(method, name=formatCommand(command))
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user