From 67fb5b5dba1b170bacdc5371fbc7d478c404602a Mon Sep 17 00:00:00 2001 From: urlbot Date: Thu, 2 Jul 2015 13:55:30 +0200 Subject: [PATCH] cleanup; add enabled/disabled to 'help' output --- plugins.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/plugins.py b/plugins.py index 288fd01..a3c0a67 100644 --- a/plugins.py +++ b/plugins.py @@ -222,9 +222,9 @@ def command_help(argv, **args): return { 'msg': [ '%s: known commands: %s' % ( - args['reply_user'], str(commands).strip('[]') + args['reply_user'], ', '.join(commands) ), - 'known parsers: %s' % str(parsers).strip('[]') + 'known parsers: %s' % ', '.join(parsers) ] } @@ -234,7 +234,8 @@ def command_help(argv, **args): flag = True log.plugin('sent help for %s' % what) return { - 'msg': args['reply_user'] + ': help for %s %s: %s' % ( + 'msg': args['reply_user'] + ': help for %s %s %s: %s' % ( + 'enabled' if p.is_enabled else 'disabled', 'parser' if p.plugin_type == ptypes_PARSE else 'command', what, p.plugin_desc )