管理员模块:支持this关键词标识本群
This commit is contained in:
parent
9d88fef157
commit
ccdca908cf
@ -259,20 +259,22 @@ public class AdminMessage extends Message {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void delModel(String qq, String model) {
|
private void delModel(String qq, String model) {
|
||||||
|
boolean flag=false;
|
||||||
try {
|
try {
|
||||||
if (model == null) {
|
if (model == null) {
|
||||||
List<String> list = QQNumberManager.getManager().getUseModel(Long.parseLong(qq));
|
List<String> list = QQNumberManager.getManager().getUseModel(Long.parseLong(qq));
|
||||||
for (String power : list) {
|
for (String power : list) {
|
||||||
QQNumberManager.getManager().delUseModel(Long.parseLong(qq), Class.forName(power));
|
flag=QQNumberManager.getManager().delUseModel(Long.parseLong(qq), Class.forName(power));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
for (String power : model.split("&")) {
|
for (String power : model.split("&")) {
|
||||||
QQNumberManager.getManager().delUseModel(Long.parseLong(qq), Class.forName(power));
|
flag=QQNumberManager.getManager().delUseModel(Long.parseLong(qq), Class.forName(power));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
QQBotManager.getInstance().sendMessage(sendQQ, flag ? "删除成功" : "删除失败");
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user