From 6273b7bdba4ec1f01d22d847eb2ae7f6d8b41784 Mon Sep 17 00:00:00 2001 From: liuwei Date: Fri, 28 Nov 2025 09:40:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=B5=A0=E4=B8=8E@=E4=BF=A1?= =?UTF-8?q?=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/xiuxian/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/xiuxian/main.py b/plugins/xiuxian/main.py index a8d1c7e..6fb1a2c 100644 --- a/plugins/xiuxian/main.py +++ b/plugins/xiuxian/main.py @@ -1767,11 +1767,11 @@ class XiuxianPlugin(MessagePluginInterface): at_el = root.find('.//atuserlist') text = (at_el.text if at_el is not None else '').strip() text = text.strip(',') - text = re.sub(r'[\\s\\u3000]+', '', text) + text = re.sub(r'\s+', '', text) at_set = set(text.split(',')) at_set.discard('') if len(at_set) != 1: - await self._send_text_with_status(bot, sender, roomid, "请@一个明确的目标进行赠与", 90) + await self._send_text_with_status(bot, sender, roomid, "请@一个明确的目标进行赠送", 90) return False, "目标无效" target_wxid = next(iter(at_set)) tokens = [t for t in content.strip().split() if not t.startswith('@')]