From 727e5f84dd1e35ddf9c52b7ff7e5241abb4cab52 Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Thu, 22 Feb 2024 23:43:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbmcl=E6=8F=92=E4=BB=B6?= =?UTF-8?q?=E4=B8=AD=E7=9A=84bug=EF=BC=8C=E7=8E=B0=E5=9C=A8=E5=8F=AF?= =?UTF-8?q?=E4=BB=A5=E6=AD=A3=E7=A1=AE=E5=A4=84=E7=90=86=E6=B6=88=E6=81=AF?= =?UTF-8?q?=E5=86=85=E5=AE=B9=E4=B8=AD=E7=9A=84=E5=90=8D=E7=A7=B0=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ica-rs/plugins/bmcl.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ica-rs/plugins/bmcl.py b/ica-rs/plugins/bmcl.py index dd7e549..5e98511 100644 --- a/ica-rs/plugins/bmcl.py +++ b/ica-rs/plugins/bmcl.py @@ -205,6 +205,7 @@ def on_message(msg: NewMessage, client: IcaClient) -> None: reply = msg.reply_with(help) client.send_message(reply) else: - if len(msg.content) > 6: - name = msg.content[6:] + name = msg.content.split(" ") + if len(name) > 1: + name = name[1] bmcl_rank(msg, client, name)