From dbe77ce4d76c44dfdd992bdae1b63900a3c0249d Mon Sep 17 00:00:00 2001 From: root Date: Tue, 5 May 2026 20:57:09 +0800 Subject: [PATCH] Revert "fix: allow admin to bypass @bot check in group chat" This reverts commit bfd8f9af9215336c56c77e193bb0f70dadd6c582. --- src/process.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/process.py b/src/process.py index 11d8104..e0207d2 100644 --- a/src/process.py +++ b/src/process.py @@ -385,8 +385,8 @@ class OpenClawBridge(BasePlugin): return "ok" # ===== 所有用户正常对话(整合后的统一流程)===== - # 群聊消息没有@机器人时,不调LLM(管理员除外) - if self.ctx.group is not None and not self._is_authorized(sender_id): + # 群聊消息没有@机器人时,不调LLM + if self.ctx.group is not None: at_me = f"[CQ:at,qq={self.ctx.rebot_id}]" in self.ctx.raw_message if not at_me: logger.info(f"Group chat without @bot from {sender_id}, skipped LLM call")