pull/31/head
UnCLAS-Prommer 2025-05-17 16:11:41 +08:00
parent 0c94458ec1
commit db3753a5d1
1 changed files with 5 additions and 2 deletions

View File

@ -151,13 +151,16 @@ class RecvHandler:
if sub_type == MessageType.Group.normal:
sender_info: dict = raw_message.get("sender")
if global_config.list_type == "whitelist" and raw_message.get("group_id") not in global_config.group_list:
if (
global_config.list_type == "whitelist"
and raw_message.get("group_id") not in global_config.group_list
):
logger.warning("群聊不在白名单中,消息被丢弃")
return None
if global_config.list_type == "blacklist" and raw_message.get("group_id") in global_config.group_list:
logger.warning("群聊在黑名单中,消息被丢弃")
return None
# 发送者用户信息
user_info: UserInfo = UserInfo(
platform=global_config.platform,