diff --git a/core/Maps/MapCommands.php b/core/Maps/MapCommands.php index e52eb830..88fcf9a0 100644 --- a/core/Maps/MapCommands.php +++ b/core/Maps/MapCommands.php @@ -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',