trim command before explode

This commit is contained in:
Beu 2025-01-10 15:44:37 +01:00
parent bfa3fdce60
commit a6875cabc8

View File

@ -214,7 +214,7 @@ class MapCommands implements CommandListener, ManialinkPageAnswerListener, Callb
return;
}
$params = explode(' ', $chatCallback[1][2], 2);
$params = explode(' ', trim($chatCallback[1][2]), 2);
if (count($params) < 2) {
$message = $this->maniaControl->getChat()->formatMessage(
'Usage example: %s',