From 277a93f89fbc963b91421b4561c62d72ba1ee31e Mon Sep 17 00:00:00 2001 From: urlbot Date: Mon, 22 Dec 2014 21:06:02 +0100 Subject: [PATCH] add 'limited to' msg to command_show_blacklist() output --- plugins.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins.py b/plugins.py index a260fac..8abcdc1 100644 --- a/plugins.py +++ b/plugins.py @@ -473,7 +473,11 @@ def command_show_blacklist(args): logger('plugin', 'sent URL blacklist') return { - 'msg': [args['reply_user'] + ': URL blacklist: '] + [ + 'msg': [ + args['reply_user'] + ': URL blacklist%s: ' % ( + '' if not args['argv1'] else ' (limited to %s)' % args['argv1'] + ) + ] + [ b for b in conf('url_blacklist') if not args['argv1'] or args['argv1'] in b ]