From 2540ba3ee2d46afb7c0a092187e3b42aae0ff920 Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Thu, 22 Feb 2024 21:17:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B6=88=E6=81=AF=E4=BD=A0=E5=BE=97=E5=8F=91?= =?UTF-8?q?=E5=87=BA=E5=8E=BB=E5=95=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ica-rs/plugins/bmcl.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ica-rs/plugins/bmcl.py b/ica-rs/plugins/bmcl.py index b42516a..2e83f07 100644 --- a/ica-rs/plugins/bmcl.py +++ b/ica-rs/plugins/bmcl.py @@ -146,14 +146,13 @@ def bmcl_rank(msg: NewMessage, client: IcaClient, name: Optional[str]) -> None: if len(counts) > 3: if len(counts) > 10: reply = msg.reply_with(f"搜索|{name}|到{len(counts)}个节点, 请用更精确的名字") - client.send_message(reply) else: # 4~10 个节点 只显示名称和次序 find_msg = [f"{r['name']}-No.{i+1}" for i, r in enumerate(ranks) if finds[i]] find_msg = "\n".join(find_msg) report_msg = f"OpenBMCLAPI 面板v{_version_}-搜索|{name}|\n{find_msg}\n" reply = msg.reply_with(report_msg) - client.info(report_msg) + client.send_message(reply) return rank_msgs = [] for i, find in enumerate(finds):