From 739ef224ebd860c0134a03bd85d05fa345c99b78 Mon Sep 17 00:00:00 2001 From: Anton Tarasenko Date: Fri, 15 Jul 2022 04:07:28 +0700 Subject: [PATCH] Fix commands complaining about common commands Some mutators use mutate specific mutate commands "help", "version", "status" and "credits" to ouput info about themselves. Before this patch commands complained that there wasn't first three of them. Now it doesn't complain. --- sources/Commands/Commands_Feature.uc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/sources/Commands/Commands_Feature.uc b/sources/Commands/Commands_Feature.uc index 992b93d..0e33795 100644 --- a/sources/Commands/Commands_Feature.uc +++ b/sources/Commands/Commands_Feature.uc @@ -486,10 +486,12 @@ private function HandleMutate(string command, PlayerController sendingPlayer) local Parser parser; local EPlayer sender; - // Ignore just "help", since a lot of other mutators use it - if (command ~= "help") { - return; - } + // A lot of other mutators use these commands + if (command ~= "help") return; + if (command ~= "version") return; + if (command ~= "status") return; + if (command ~= "credits") return; + parser = _.text.ParseString(command); sender = _.players.FromController(sendingPlayer); HandleInput(parser, sender);