From 923957d0e74ba25a0c47fd64a34bf00ae35ddbdf Mon Sep 17 00:00:00 2001 From: Thomas Lynch Date: Sat, 30 Nov 2024 03:55:25 +1100 Subject: [PATCH] Change variable to table map name, for checking against whitelist for admin bypass --- src/lua/scripts/bot-check.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lua/scripts/bot-check.lua b/src/lua/scripts/bot-check.lua index 4f72e63..9d504f8 100644 --- a/src/lua/scripts/bot-check.lua +++ b/src/lua/scripts/bot-check.lua @@ -454,7 +454,7 @@ function _M.set_ip_var(txn, map_name, set_variable, lookup_var) -- loop through them and set the blocked var if found local split_names = utils.split(names_list, ":") for _, name in ipairs(split_names) do - if name == current_name or (lookup_key == "whitelist" and name == "admin") then + if name == current_name or (map_name == "whitelist" and name == "admin") then _M.set_lang_json(txn) txn:set_var(set_variable, true) return