修复notice处理意外的群notice

pull/31/head
UnCLAS-Prommer 2025-06-03 09:34:07 +08:00
parent 8764961418
commit b7d3c68b92
2 changed files with 7 additions and 2 deletions

View File

@ -480,6 +480,11 @@ class RecvHandler:
group_id = raw_message.get("group_id")
user_id = raw_message.get("user_id")
if not self.check_allow_to_chat(user_id, group_id):
logger.warning("notice消息被丢弃")
return None
handled_message: Seg = None
match notice_type: