From 2df33118be7076dd7fb676290d7ee3e016b800e4 Mon Sep 17 00:00:00 2001 From: Sam Date: Sun, 11 Apr 2021 19:25:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0CQ:at=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E6=A3=80=E6=9F=A5=20-=20#799=20=E7=9A=84=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- coolq/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coolq/api.go b/coolq/api.go index 3ff8cb9..026b920 100644 --- a/coolq/api.go +++ b/coolq/api.go @@ -285,7 +285,7 @@ func (bot *CQBot) CQSendGroupMessage(groupID int64, i interface{}, autoEscape bo } fixAt := func(elem []message.IMessageElement) { for _, e := range elem { - if at, ok := e.(*message.AtElement); ok && at.Target != 0 { + if at, ok := e.(*message.AtElement); ok && at.Target != 0 && at.Display == "" { at.Display = "@" + func() string { mem := group.FindMember(at.Target) if mem != nil {