extend command_help() to ptypes_PARSE
This commit is contained in:
@@ -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
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user