mirror of
http://aero2k.de/t/repos/urlbot-native.git
synced 2017-09-06 15:25:38 +02:00
fix for multi-line output, e.g. "unikot"
This commit is contained in:
18
plugins.py
18
plugins.py
@@ -166,9 +166,11 @@ def command_unicode(args):
|
||||
if 'unikot' in args['data']:
|
||||
return {
|
||||
'msg':
|
||||
args['reply_user'] + u''': ┌────────┐''' + '\n' +
|
||||
args['reply_user'] + u''': │Unicode!│''' + '\n' +
|
||||
args['reply_user'] + u''': └────────┘'''
|
||||
(
|
||||
args['reply_user'] + u''': ┌────────┐''',
|
||||
args['reply_user'] + u''': │Unicode!│''',
|
||||
args['reply_user'] + u''': └────────┘'''
|
||||
)
|
||||
}
|
||||
|
||||
def command_source(args):
|
||||
@@ -315,8 +317,14 @@ def data_parse_commands(data):
|
||||
|
||||
if None != ret:
|
||||
if 'msg' in ret.keys():
|
||||
ratelimit_touch(RATE_CHAT)
|
||||
chat_write(ret['msg'])
|
||||
if str == type(ret['msg']):
|
||||
ratelimit_touch(RATE_CHAT)
|
||||
chat_write(ret['msg'])
|
||||
else:
|
||||
for line in ret['msg']:
|
||||
ratelimit_touch(RATE_CHAT)
|
||||
chat_write(line)
|
||||
|
||||
return None
|
||||
|
||||
ret = command_else({'reply_user': reply_user})
|
||||
|
||||
Reference in New Issue
Block a user