Ignore blank inputs

This commit is contained in:
Him188 2020-09-11 23:08:15 +08:00
parent a13ce6ff17
commit 2223451b70

View File

@ -34,6 +34,7 @@ internal fun startupConsoleThread() {
try {
val next = MiraiConsole.requestInput("").let {
when {
it.isBlank() -> it
it.startsWith(CommandManager.commandPrefix) -> it
it == "?" -> CommandManager.commandPrefix + BuiltInCommands.HelpCommand.primaryName
else -> CommandManager.commandPrefix + it