From 27030d150ea430c24a0af74f0b1137af6a61d0f4 Mon Sep 17 00:00:00 2001 From: Karlatemp Date: Mon, 21 Dec 2020 23:33:09 +0800 Subject: [PATCH] login result type: 239, fix #744 --- .../commonMain/kotlin/network/protocol/packet/login/WtLogin.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mirai-core/src/commonMain/kotlin/network/protocol/packet/login/WtLogin.kt b/mirai-core/src/commonMain/kotlin/network/protocol/packet/login/WtLogin.kt index fcfada40c..6cd639b67 100644 --- a/mirai-core/src/commonMain/kotlin/network/protocol/packet/login/WtLogin.kt +++ b/mirai-core/src/commonMain/kotlin/network/protocol/packet/login/WtLogin.kt @@ -323,7 +323,7 @@ internal class WtLogin { return when (type.toInt()) { 0 -> onLoginSuccess(tlvMap, bot) 2 -> onSolveLoginCaptcha(tlvMap, bot) - 160 /*-96*/ -> onUnsafeDeviceLogin(tlvMap) + 160, 239 /*-96*/ -> onUnsafeDeviceLogin(tlvMap) 204 /*-52*/ -> onSMSVerifyNeeded(tlvMap, bot) // 1, 15 -> onErrorMessage(tlvMap) ?: error("Cannot find error message") else -> {