1
0
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:
urlbot
2014-11-28 19:18:45 +01:00
parent 31f1e285c6
commit df471859d0

View File

@@ -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,7 +530,11 @@ def data_parse_commands(data):
return False
if 'msg' in list(ret.keys()):
chat_write(ret['msg'])
if list is type(ret['msg']):
for m in ret['msg']:
chat_write(m)
else:
chat_write(ret['msg'])
funcs = {}
funcs['parse'] = (parse_mental_ill, parse_skynet, parse_debbug)