From bfa3fdce60df22e6811841977ca017d0b758fe41 Mon Sep 17 00:00:00 2001 From: beu Date: Wed, 13 Nov 2024 16:21:39 +0100 Subject: [PATCH] fix add admin command --- core/Admin/AuthCommands.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/Admin/AuthCommands.php b/core/Admin/AuthCommands.php index 93a27c53..b444104c 100644 --- a/core/Admin/AuthCommands.php +++ b/core/Admin/AuthCommands.php @@ -56,7 +56,7 @@ class AuthCommands implements CommandListener, UsageInformationAble { $text = $chatCallback[1][2]; $commandParts = explode(' ', $text); - if (!array_key_exists(1, $commandParts)) { + if (!array_key_exists(1, $commandParts) || $commandParts[1] === "") { $message = $this->maniaControl->getChat()->formatMessage( 'Usage Example: %s %s', $commandParts[0],