From 807d19e381fb0e78853fc9301347ee404b3d9891 Mon Sep 17 00:00:00 2001 From: Soulter <37870767+Soulter@users.noreply.github.com> Date: Mon, 22 May 2023 20:54:31 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dgocq=E7=BE=A4=E8=81=8A?= =?UTF-8?q?=E6=97=B6@=E6=97=A0=E5=8F=8D=E5=BA=94=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cores/qqbot/core.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/cores/qqbot/core.py b/cores/qqbot/core.py index 1c881020b..8625389c9 100644 --- a/cores/qqbot/core.py +++ b/cores/qqbot/core.py @@ -510,8 +510,11 @@ def oper_msg(message, _len = 0 for i in message.message: if isinstance(i, Plain): - qq_msg = str(i.text).strip() - break + qq_msg += str(i.text).strip() + if isinstance(i, At): + if i.qq == message.self_id: + with_tag = True + for i in nick_qq: if i != '' and qq_msg.startswith(i): _len = len(i)