Revert "fix: allow admin to bypass @bot check in group chat"
This reverts commit bfd8f9af92.
This commit is contained in:
@ -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")
|
||||
|
||||
Reference in New Issue
Block a user