mirror of
https://github.com/mamoe/mirai.git
synced 2025-03-23 22:00:10 +08:00
Fix ignored friend message event logging, fix #1312
This commit is contained in:
parent
a45ae814c1
commit
56165c82aa
@ -52,7 +52,6 @@ internal class PacketLoggingStrategyImpl(
|
||||
if (packet is ParseErrorPacket) {
|
||||
packet.direction.getLogger(bot).error(packet.error)
|
||||
}
|
||||
if (incomingPacket.commandName in blacklist) return
|
||||
if (incomingPacket.data is MultiPacket<*>) {
|
||||
for (d in incomingPacket.data) {
|
||||
logReceivedImpl(d, incomingPacket, logger)
|
||||
@ -71,6 +70,7 @@ internal class PacketLoggingStrategyImpl(
|
||||
// "Event: $packet".replaceMagicCodes()
|
||||
// } // processed in global `Event.broadcast`
|
||||
else -> {
|
||||
if (incomingPacket.commandName in blacklist) return
|
||||
if (SHOW_PACKET_DETAILS) {
|
||||
logger.verbose { "Recv: ${incomingPacket.commandName} ${incomingPacket.data}".replaceMagicCodes() }
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user