mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-10 18:40:15 +08:00
Improve LoginSolver selecting
This commit is contained in:
parent
113fc20cf9
commit
8529704378
@ -78,6 +78,7 @@ class MiraiConsoleImplementationTerminal
|
|||||||
override val isAnsiSupported: Boolean get() = true
|
override val isAnsiSupported: Boolean get() = true
|
||||||
|
|
||||||
override fun createLoginSolver(requesterBot: Long, configuration: BotConfiguration): LoginSolver {
|
override fun createLoginSolver(requesterBot: Long, configuration: BotConfiguration): LoginSolver {
|
||||||
|
LoginSolver.Default?.takeIf { it !is StandardCharImageLoginSolver }?.let { return it }
|
||||||
return StandardCharImageLoginSolver(input = { requestInput("LOGIN> ") })
|
return StandardCharImageLoginSolver(input = { requestInput("LOGIN> ") })
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user