Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix issue with escape character selectors #1539

Merged
merged 1 commit into from
Jun 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions MainModule/Server/Core/Admin.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down
Loading