refactor(chatter): 移除冗余的私聊/群聊总开关检查
主动思考功能的启用/禁用逻辑现在完全由黑白名单机制控制。移除原有的全局开关可以简化配置项,并使调度器中的判断逻辑更加清晰。
This commit is contained in:
@@ -92,12 +92,6 @@ class ProactiveThinkingScheduler:
|
|||||||
|
|
||||||
is_private = parts[2] == "private"
|
is_private = parts[2] == "private"
|
||||||
|
|
||||||
# 检查基础开关
|
|
||||||
if is_private and not self.config.enable_in_private:
|
|
||||||
return False
|
|
||||||
if not is_private and not self.config.enable_in_group:
|
|
||||||
return False
|
|
||||||
|
|
||||||
# 黑名单检查(优先级高)
|
# 黑名单检查(优先级高)
|
||||||
if self.config.blacklist_mode:
|
if self.config.blacklist_mode:
|
||||||
blacklist = self.config.blacklist_private if is_private else self.config.blacklist_group
|
blacklist = self.config.blacklist_private if is_private else self.config.blacklist_group
|
||||||
|
|||||||
Reference in New Issue
Block a user