mirror of
http://aero2k.de/t/repos/urlbot-native.git
synced 2017-09-06 15:25:38 +02:00
fix multi-item 'msg' for plugins
This commit is contained in:
@@ -432,10 +432,10 @@ def command_show_blacklist(args):
|
||||
logger('plugin', 'sent URL blacklist')
|
||||
|
||||
return {
|
||||
'msg': '\n'.join([
|
||||
'msg': [
|
||||
args['reply_user'] + ': URL blacklist: ' + b
|
||||
for b in conf('url_blacklist')
|
||||
])
|
||||
]
|
||||
}
|
||||
|
||||
#def command_dummy(args):
|
||||
@@ -530,6 +530,10 @@ def data_parse_commands(data):
|
||||
return False
|
||||
|
||||
if 'msg' in list(ret.keys()):
|
||||
if list is type(ret['msg']):
|
||||
for m in ret['msg']:
|
||||
chat_write(m)
|
||||
else:
|
||||
chat_write(ret['msg'])
|
||||
|
||||
funcs = {}
|
||||
|
||||
Reference in New Issue
Block a user