mirror of
https://github.com/mamoe/mirai.git
synced 2025-02-08 16:54:47 +08:00
Improve OtherClients load messages
This commit is contained in:
parent
596a295905
commit
544006b0e7
@ -290,7 +290,11 @@ internal class QQAndroidBotNetworkHandler(coroutineContext: CoroutineContext, bo
|
||||
bot.otherClients.delegate.clear()
|
||||
bot.otherClients.delegate.addAll(list.map { bot.createOtherClient(it) })
|
||||
|
||||
bot.logger.info { "Online OtherClients: " + bot.otherClients.joinToString { "${it.deviceName}(${it.platform?.name ?: "unknown platform"})" } }
|
||||
if (bot.otherClients.isEmpty()) {
|
||||
bot.logger.info { "No OtherClient online." }
|
||||
} else {
|
||||
bot.logger.info { "Online OtherClients: " + bot.otherClients.joinToString { "${it.deviceName}(${it.platform?.name ?: "unknown platform"})" } }
|
||||
}
|
||||
}
|
||||
|
||||
// caches
|
||||
|
Loading…
Reference in New Issue
Block a user