From 05ee15c7f47f4eb23e2be4148d5d7f703a913780 Mon Sep 17 00:00:00 2001 From: fxeP1 <64731916+fxeP1@users.noreply.github.com> Date: Sat, 25 May 2024 00:25:03 +0100 Subject: [PATCH] Fix issue with escape character selectors Should resolve an issue where player selectors such as `%team` would contain an escape character and prevent aliases from being formatted. --- MainModule/Server/Core/Admin.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/MainModule/Server/Core/Admin.lua b/MainModule/Server/Core/Admin.lua index 66e5e2c5fc..952adf281c 100644 --- a/MainModule/Server/Core/Admin.lua +++ b/MainModule/Server/Core/Admin.lua @@ -439,7 +439,7 @@ return function(Vargs, GetEnv) for i,argType in argTab do local replaceWith = suppliedArgs[i] if replaceWith then - out = string.gsub(out, SanitizePattern(argType), replaceWith) + out = string.gsub(out, SanitizePattern(argType), SanitizePattern(replaceWith)) end end @@ -1479,7 +1479,7 @@ return function(Vargs, GetEnv) if not Admin.CheckAliasBlacklist(tAlias) then local escAlias = SanitizePattern(tAlias) --// Ignore any "empty" aliases, aka aliases that would basically match any command - if string.len(Functions.Trim(escAlias)) == 0 then + if string.len(Functions.Trim(escAlias)) == 0 then continue end local trimmedMsg = Functions.Trim(msg) @@ -1508,7 +1508,7 @@ return function(Vargs, GetEnv) return msg end; - + StringToComLevel = function(str) local strType = type(str) if strType == "string" and string.lower(str) == "players" then