From f900ef8070358f1bd516b4703046a6a54cf99b1c Mon Sep 17 00:00:00 2001 From: urlbot Date: Thu, 18 Jun 2015 14:09:29 +0200 Subject: [PATCH] extend command_help() to ptypes_PARSE --- plugins.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins.py b/plugins.py index 07c305e..c6f97df 100644 --- a/plugins.py +++ b/plugins.py @@ -235,12 +235,13 @@ def command_help(argv, **args): } flag = False - for p in plugins[ptypes_COMMAND]: + for p in plugins[ptypes_COMMAND] + plugins[ptypes_PARSE]: if what == p.plugin_name: flag = True logger('plugin', 'sent help for %s' % what) 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 ) }