From 64c587c17d411d78745c6dcbab903b6c3b6bebce Mon Sep 17 00:00:00 2001 From: Rock Chin <1010553892@qq.com> Date: Fri, 3 Feb 2023 14:15:40 +0800 Subject: [PATCH] =?UTF-8?q?fix(process.py):=20=E8=A7=A6=E5=8F=91=E4=BA=8B?= =?UTF-8?q?=E4=BB=B6=E6=97=B6=E9=94=99=E8=AF=AF=E7=9A=84=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E5=91=98=E5=88=A4=E6=96=AD=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/qqbot/process.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/qqbot/process.py b/pkg/qqbot/process.py index df3094ff..7eb30bfb 100644 --- a/pkg/qqbot/process.py +++ b/pkg/qqbot/process.py @@ -75,7 +75,7 @@ def process_message(launcher_type: str, launcher_id: int, text_message: str, mes 'command': text_message[1:].strip().split(' ')[0], 'params': text_message[1:].strip().split(' ')[1:], 'text_message': text_message, - 'is_admin': sender_id is config.admin_qq, + 'is_admin': sender_id == config.admin_qq, } event = plugin_host.emit(plugin_models.PersonCommandSent if launcher_type == 'person'