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:
James Vega 2009-04-28 00:33:03 -04:00
parent f3dca89500
commit b3d97ea03e

View File

@ -1200,7 +1200,9 @@ class Commands(BasePlugin):
def getCommandHelp(self, command):
method = self.getCommandMethod(command)
help = getHelp
if conf.get(conf.supybot.reply.showSimpleSyntax, dynamic.msg.args[0]):
m = dynamic.msg
if m is not None:
if conf.get(conf.supybot.reply.showSimpleSyntax, m.args[0]):
help = getSyntax
if hasattr(method, '__doc__'):
return help(method, name=formatCommand(command))