From bb2048b958a59a76eea9e0e19cf9ee8d5b3576b1 Mon Sep 17 00:00:00 2001 From: TsFreddie Date: Sat, 28 Dec 2024 12:56:16 +0800 Subject: [PATCH] Revert "Fix 'all' and 'me' not passing parameter validation in rcon" This reverts commit 52beb0855c76516a0b29a33f78e71bf4fc9735de. --- src/engine/shared/console.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/engine/shared/console.cpp b/src/engine/shared/console.cpp index 8b750dc6a77..acab17a0d0f 100644 --- a/src/engine/shared/console.cpp +++ b/src/engine/shared/console.cpp @@ -235,12 +235,6 @@ int CConsole::ParseArgs(CResult *pResult, const char *pFormat, bool IsColor) if(!IsColor) { int Value; - if(str_comp(pResult->GetString(pResult->NumArguments() - 1), "all") == 0 || - str_comp(pResult->GetString(pResult->NumArguments() - 1), "me") == 0) - { - Error = PARSEARGS_OK; - break; - } if(!str_toint(pResult->GetString(pResult->NumArguments() - 1), &Value) || Value == std::numeric_limits::max() || Value == std::numeric_limits::min()) {