mirror of
https://github.com/mamoe/mirai.git
synced 2025-02-01 03:50:18 +08:00
Replace "\r" with ""
This commit is contained in:
parent
3620d4bd9a
commit
4d2510d0e7
@ -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) {
|
||||
|
@ -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", "")})"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user