1
0
mirror of http://aero2k.de/t/repos/urlbot-native.git synced 2017-09-06 15:25:38 +02:00

extend command_help() to ptypes_PARSE

This commit is contained in:
urlbot
2015-06-18 14:09:29 +02:00
parent 3325f9cf9e
commit f900ef8070

View File

@@ -235,12 +235,13 @@ def command_help(argv, **args):
} }
flag = False flag = False
for p in plugins[ptypes_COMMAND]: for p in plugins[ptypes_COMMAND] + plugins[ptypes_PARSE]:
if what == p.plugin_name: if what == p.plugin_name:
flag = True flag = True
logger('plugin', 'sent help for %s' % what) logger('plugin', 'sent help for %s' % what)
return { return {
'msg': args['reply_user'] + ': help for %s: %s' % ( 'msg': args['reply_user'] + ': help for %s %s: %s' % (
'parser' if p.plugin_type == ptypes_PARSE else 'command',
what, p.plugin_desc what, p.plugin_desc
) )
} }