From 9d88fef1572452bb5ee919e61c5cc888abfa47e1 Mon Sep 17 00:00:00 2001 From: Yutousama <583819556@qq.com> Date: Sun, 17 Apr 2022 15:51:34 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AE=A1=E7=90=86=E5=91=98=E6=A8=A1=E5=9D=97?= =?UTF-8?q?=EF=BC=9A=E6=94=AF=E6=8C=81this=E5=85=B3=E9=94=AE=E8=AF=8D?= =?UTF-8?q?=E6=A0=87=E8=AF=86=E6=9C=AC=E7=BE=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/yutou/qqbot/MessageEvent/AdminMessage.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/yutou/qqbot/MessageEvent/AdminMessage.java b/src/main/java/com/yutou/qqbot/MessageEvent/AdminMessage.java index fb67934..446bbb5 100644 --- a/src/main/java/com/yutou/qqbot/MessageEvent/AdminMessage.java +++ b/src/main/java/com/yutou/qqbot/MessageEvent/AdminMessage.java @@ -125,10 +125,14 @@ public class AdminMessage extends Message { if (msgGroup.length == 1) { QQBotManager.getInstance().sendMessage(qq, "使用方法:" + QQCommands.MODEL_DEL + " [qqnumber] 模块 用&分割"); } else { + String qqGroup=msgGroup[1]; + if("this".equals(qqGroup)){ + qqGroup=sendQQ+""; + } if (msgGroup.length <= 2) { - delModel(msgGroup[1], null); + delModel(qqGroup, null); } else { - delModel(msgGroup[1], msgGroup[2]); + delModel(qqGroup, msgGroup[2]); } } }