From b204ab914d8ffa6fd84c1a4b96cf0abbb9adc0aa Mon Sep 17 00:00:00 2001 From: minecraft1024a Date: Wed, 24 Sep 2025 18:06:13 +0800 Subject: [PATCH] =?UTF-8?q?fix(napcat=5Fadapter):=20=E7=A1=AE=E4=BF=9D?= =?UTF-8?q?=E5=9B=9E=E5=A4=8D=E6=B6=88=E6=81=AF=E7=9A=84=E7=9B=AE=E6=A0=87?= =?UTF-8?q?=20ID=20=E5=A7=8B=E7=BB=88=E4=B8=BA=E5=AD=97=E7=AC=A6=E4=B8=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/plugins/built_in/napcat_adapter_plugin/src/send_handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/built_in/napcat_adapter_plugin/src/send_handler.py b/src/plugins/built_in/napcat_adapter_plugin/src/send_handler.py index 93f43d01c..6494e9464 100644 --- a/src/plugins/built_in/napcat_adapter_plugin/src/send_handler.py +++ b/src/plugins/built_in/napcat_adapter_plugin/src/send_handler.py @@ -229,8 +229,8 @@ class SendHandler: # sourcery skip: reintroduce-else, swap-if-else-branches, use-named-expression new_payload = payload if seg.type == "reply": - logger.info(seg.data) target_id = seg.data + target_id = str(target_id) if target_id == "notice": return payload logger.info(target_id if isinstance(target_id, str) else "")