From b2738d909bc14cc1ee7d1d008b79a2024deacd8a Mon Sep 17 00:00:00 2001 From: Sam Date: Sat, 6 Mar 2021 16:01:57 +0800 Subject: [PATCH] =?UTF-8?q?=E9=99=90=E5=88=B6=20handle=5Fquick=5Fop...=20?= =?UTF-8?q?=E7=9A=84=20at=5Fsender=20=E4=BD=BF=E7=94=A8=E5=9C=BA=E6=99=AF,?= =?UTF-8?q?=20Closes=20#701?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- coolq/api.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/coolq/api.go b/coolq/api.go index 2f29268..ff41c44 100644 --- a/coolq/api.go +++ b/coolq/api.go @@ -831,9 +831,9 @@ func (bot *CQBot) CQHandleQuickOperation(context, operation gjson.Result) MSG { if reply.Exists() { autoEscape := global.EnsureBool(operation.Get("auto_escape"), false) - at := !isAnonymous // 除匿名消息场合外默认 true + at := !isAnonymous && msgType == "group" // 除匿名消息场合外默认 true if operation.Get("at_sender").Exists() { - at = operation.Get("at_sender").Bool() && !isAnonymous + at = operation.Get("at_sender").Bool() && !isAnonymous && msgType == "group" } if at && reply.IsArray() {