Replace "\r" with ""

This commit is contained in:
Him188 2020-02-07 10:18:33 +08:00
parent 3620d4bd9a
commit 4d2510d0e7
2 changed files with 2 additions and 2 deletions

View File

@ -366,7 +366,7 @@ internal class QQAndroidBotNetworkHandler(bot: QQAndroidBot) : BotNetworkHandler
if (packet is Cancellable && packet.cancelled) return
}
bot.logger.info("Received packet: ${packet.toString().replace("\n", """\n""")}")
bot.logger.info("Received packet: ${packet.toString().replace("\n", """\n""").replace("\r", "")}")
packetFactory?.run {
when (this) {

View File

@ -4,5 +4,5 @@ package net.mamoe.mirai.data
* 被挤下线. 只能获取到中文的消息
*/
inline class ConnectionOccupiedEvent(val message: String) : EventPacket {
override fun toString(): String = "ConnectionOccupiedEvent(${message.replace("\n", "")})"
override fun toString(): String = "ConnectionOccupiedEvent(${message.replace("\n", "").replace("\r", "")})"
}