Commit 4d2510d0 authored by Him188's avatar Him188

Replace "\r" with ""

parent 3620d4bd
...@@ -366,7 +366,7 @@ internal class QQAndroidBotNetworkHandler(bot: QQAndroidBot) : BotNetworkHandler ...@@ -366,7 +366,7 @@ internal class QQAndroidBotNetworkHandler(bot: QQAndroidBot) : BotNetworkHandler
if (packet is Cancellable && packet.cancelled) return 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 { packetFactory?.run {
when (this) { when (this) {
......
...@@ -4,5 +4,5 @@ package net.mamoe.mirai.data ...@@ -4,5 +4,5 @@ package net.mamoe.mirai.data
* 被挤下线. 只能获取到中文的消息 * 被挤下线. 只能获取到中文的消息
*/ */
inline class ConnectionOccupiedEvent(val message: String) : EventPacket { 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", "")})"
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment