fix: 无法根据ban_person忽略群内指定人消息 (#211)

This commit is contained in:
Rock Chin
2023-03-05 10:33:16 +08:00
parent 56e906c83f
commit a610a9d3d3
2 changed files with 22 additions and 18 deletions

View File

@@ -49,7 +49,7 @@ def process_message(launcher_type: str, launcher_id: int, text_message: str, mes
session_name = "{}_{}".format(launcher_type, launcher_id)
# 检查发送方是否被禁用
if banlist.is_banned(launcher_type, launcher_id):
if banlist.is_banned(launcher_type, launcher_id, sender_id):
logging.info("根据禁用列表忽略{}_{}的消息".format(launcher_type, launcher_id))
return []