From 996087ec4ee47462df953722ab728c2abff8c0d5 Mon Sep 17 00:00:00 2001 From: Frank Date: Sun, 23 Aug 2026 21:39:57 +0200 Subject: [PATCH] Allow console commands to also be typed with a leading slash pwd/ls/scan/sudo/rm/cd/cat now work as /pwd, /ls, /scan, /sudo, /rm, /cd, /cat too, delegating to checkConsoleCommando the same way the bare chat/verify/decode aliasing already delegates the other direction. --- src/Game/Service/GameResponseService.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/Game/Service/GameResponseService.php b/src/Game/Service/GameResponseService.php index cf6b6cf..7af790d 100644 --- a/src/Game/Service/GameResponseService.php +++ b/src/Game/Service/GameResponseService.php @@ -179,6 +179,14 @@ class GameResponseService $result = $this->handleVerifyMessage($message, $player); return ['result' => [$result]]; + case '/pwd': + case '/ls': + case '/scan': + case '/sudo': + case '/rm': + case '/cd': + case '/cat': + return $this->checkConsoleCommando(substr($message, 1), $player); default: return ['result' => ['Unknown command']]; }