mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-30 22:24:20 +01:00
Update Factoids.getCommandHelp to respect supybot.reply.showSimpleSyntax
This commit is contained in:
parent
eb6117da4f
commit
08a0531bf7
@ -103,10 +103,14 @@ class Factoids(callbacks.Plugin, plugins.ChannelDBHandler):
|
|||||||
method = self.getCommandMethod(command)
|
method = self.getCommandMethod(command)
|
||||||
if method.im_func.func_name == 'learn':
|
if method.im_func.func_name == 'learn':
|
||||||
s = self.registryValue('learnSeparator', dynamic.msg.args[0])
|
s = self.registryValue('learnSeparator', dynamic.msg.args[0])
|
||||||
return callbacks.getHelp(method,
|
help = callbacks.getHelp
|
||||||
|
if conf.get(conf.supybot.reply.showSimpleSyntax,
|
||||||
|
dynamic.msg.args[0]):
|
||||||
|
help = callbacks.getSyntax
|
||||||
|
return help(method,
|
||||||
doc=method._fake__doc__ % (s, s),
|
doc=method._fake__doc__ % (s, s),
|
||||||
name=callbacks.formatCommand(command))
|
name=callbacks.formatCommand(command))
|
||||||
return super(Factoids, self).getCommandHelp(self, command)
|
return self.__parent.getCommandHelp(command)
|
||||||
|
|
||||||
def learn(self, irc, msg, args, channel, key, factoid):
|
def learn(self, irc, msg, args, channel, key, factoid):
|
||||||
db = self.getDb(channel)
|
db = self.getDb(channel)
|
||||||
|
Loading…
Reference in New Issue
Block a user