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

add 'limited to' msg to command_show_blacklist() output

This commit is contained in:
urlbot
2014-12-22 21:06:02 +01:00
parent 49a36df11f
commit 277a93f89f

View File

@@ -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
]