From 191976e22e82cffaf7e18edfaa89993cf05273ba Mon Sep 17 00:00:00 2001 From: Soulter <905617992@qq.com> Date: Mon, 25 Sep 2023 13:55:00 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E4=B8=80=E4=BA=9B?= =?UTF-8?q?=E6=9D=83=E9=99=90=E4=B8=8A=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cores/qqbot/core.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cores/qqbot/core.py b/cores/qqbot/core.py index edad4cad9..4d492954b 100644 --- a/cores/qqbot/core.py +++ b/cores/qqbot/core.py @@ -541,12 +541,14 @@ def oper_msg(message, sender_id = str(message.sender.tiny_id) else: sender_id = str(message.sender.user_id) - if sender_id == admin_qq or sender_id == admin_qqchan: + if sender_id == admin_qq or \ + sender_id == admin_qqchan or \ + sender_id in cc.get("other_admins", []) or \ + sender_id == cc.get("gocq_qqchan_admin", ""): # gu.log("检测到管理员身份", gu.LEVEL_INFO, tag="GOCQ") role = "admin" if platform == PLATFORM_QQCHAN: - with_tag = True if qq_msg == "":