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:
12
plugins.py
12
plugins.py
@@ -166,9 +166,11 @@ def command_unicode(args):
|
|||||||
if 'unikot' in args['data']:
|
if 'unikot' in args['data']:
|
||||||
return {
|
return {
|
||||||
'msg':
|
'msg':
|
||||||
args['reply_user'] + u''': ┌────────┐''' + '\n' +
|
(
|
||||||
args['reply_user'] + u''': │Unicode!│''' + '\n' +
|
args['reply_user'] + u''': ┌────────┐''',
|
||||||
|
args['reply_user'] + u''': │Unicode!│''',
|
||||||
args['reply_user'] + u''': └────────┘'''
|
args['reply_user'] + u''': └────────┘'''
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
def command_source(args):
|
def command_source(args):
|
||||||
@@ -315,8 +317,14 @@ def data_parse_commands(data):
|
|||||||
|
|
||||||
if None != ret:
|
if None != ret:
|
||||||
if 'msg' in ret.keys():
|
if 'msg' in ret.keys():
|
||||||
|
if str == type(ret['msg']):
|
||||||
ratelimit_touch(RATE_CHAT)
|
ratelimit_touch(RATE_CHAT)
|
||||||
chat_write(ret['msg'])
|
chat_write(ret['msg'])
|
||||||
|
else:
|
||||||
|
for line in ret['msg']:
|
||||||
|
ratelimit_touch(RATE_CHAT)
|
||||||
|
chat_write(line)
|
||||||
|
|
||||||
return None
|
return None
|
||||||
|
|
||||||
ret = command_else({'reply_user': reply_user})
|
ret = command_else({'reply_user': reply_user})
|
||||||
|
|||||||
Reference in New Issue
Block a user