From 49d7d35a503ea78cd53869b3d12948ac79b82990 Mon Sep 17 00:00:00 2001 From: Him188 Date: Tue, 23 Jun 2020 18:19:32 +0800 Subject: [PATCH] Add specified log when permission denied --- .../net/mamoe/mirai/console/pure/MiraiConsolePureLoader.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/mirai-console-pure/src/main/kotlin/net/mamoe/mirai/console/pure/MiraiConsolePureLoader.kt b/frontend/mirai-console-pure/src/main/kotlin/net/mamoe/mirai/console/pure/MiraiConsolePureLoader.kt index 77a55e1e9..18c9a8dfd 100644 --- a/frontend/mirai-console-pure/src/main/kotlin/net/mamoe/mirai/console/pure/MiraiConsolePureLoader.kt +++ b/frontend/mirai-console-pure/src/main/kotlin/net/mamoe/mirai/console/pure/MiraiConsolePureLoader.kt @@ -56,6 +56,9 @@ internal fun startConsoleThread() { CommandExecuteStatus.COMMAND_NOT_FOUND -> { consoleLogger.warning("Unknown command: ${result.commandName}") } + CommandExecuteStatus.PERMISSION_DENIED -> { + consoleLogger.warning("Permission denied.") + } } } }