mirror of
https://github.com/mamoe/mirai.git
synced 2025-03-12 22:10:14 +08:00
Add warning log
This commit is contained in:
parent
d1153e3c02
commit
171929d938
@ -127,7 +127,7 @@ internal class MessageSvc {
|
|||||||
val resp = readProtoBuf(MsgSvc.PbGetMsgResp.serializer())
|
val resp = readProtoBuf(MsgSvc.PbGetMsgResp.serializer())
|
||||||
|
|
||||||
if (resp.result != 0) {
|
if (resp.result != 0) {
|
||||||
// println("!!! Result=${resp.result} !!!: " + resp.contentToString())
|
bot.network.logger.warning("MessageSvc.PushNotify: result != 0, result = ${resp.result}, errorMsg=${resp.errmsg}")
|
||||||
return EmptyResponse
|
return EmptyResponse
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -149,7 +149,7 @@ internal class MessageSvc {
|
|||||||
val group = bot.getGroupByUinOrNull(msg.msgHead.fromUin)
|
val group = bot.getGroupByUinOrNull(msg.msgHead.fromUin)
|
||||||
if (msg.msgHead.authUin == bot.uin) {
|
if (msg.msgHead.authUin == bot.uin) {
|
||||||
if (group != null) {
|
if (group != null) {
|
||||||
error("group is not null while bot is invited to the group")
|
return@mapNotNull null
|
||||||
}
|
}
|
||||||
// 新群
|
// 新群
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user