From 0827591f24790e12a3534337e7fab2c387712f41 Mon Sep 17 00:00:00 2001 From: yzhh Date: Wed, 10 Feb 2021 22:48:49 +0800 Subject: [PATCH] bugfix --- modules/server/__init__.py | 2 +- modules/utils/ab.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/server/__init__.py b/modules/server/__init__.py index d81e97de..0c4d15c4 100644 --- a/modules/server/__init__.py +++ b/modules/server/__init__.py @@ -15,7 +15,7 @@ async def main(kwargs: dict): sendmsg = await server(message, raw=True) else: sendmsg = await server(message) - sendmsg = await check(sendmsg) + sendmsg = await check([sendmsg]) send = await sendMessage(kwargs, sendmsg) await asyncio.sleep(30) await revokeMessage(send) diff --git a/modules/utils/ab.py b/modules/utils/ab.py index f7ab74a1..d060a66b 100644 --- a/modules/utils/ab.py +++ b/modules/utils/ab.py @@ -21,8 +21,8 @@ async def ab(table, id): d = [] for x in file['query']['abuselog'][:5]: d.append('•' + x['title'] + ' - ' + x['user'] + '于' + UTC8(x['timestamp'], 'onlytimenoutc') + '\n过滤器名:' + x[ - 'filter'] + '\n处理结果:' + x['result'] + '\n') - y = await check(d) + 'filter'] + '\n处理结果:' + x['result']) + y = await check(['\n'.join(d)]) if y.find('<吃掉了>') != -1 or y.find('<全部吃掉了>') != -1: return y + '\n...仅显示前5条内容\n检测到外来信息介入,请前往滥用日志查看所有消息。Special:滥用日志\n[一分钟后撤回本消息]' else: