From 53ac7975a67dd4dbfecdc11d741b3de9c64a74e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9ophile=20Diot?= Date: Tue, 19 Nov 2024 14:39:18 +0100 Subject: [PATCH] fix: use right function to get the security mode in limit plugin --- .pre-commit-config.yaml | 2 +- src/common/core/limit/limit.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c88f7265a..2cd442f4d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -30,7 +30,7 @@ repos: name: Prettier Code Formatter - repo: https://github.com/JohnnyMorganz/StyLua - rev: 84c370104d6a8d1eef00c80a3ebd42f7033aaaad # frozen: v0.20.0 + rev: f4b9d628b48d1a8b21fdc38967831640de1ba09f # frozen: v2.0.1 hooks: - id: stylua-github exclude: ^src/(bw/lua/middleclass.lua|common/core/antibot/captcha.lua)$ diff --git a/src/common/core/limit/limit.lua b/src/common/core/limit/limit.lua index 78c639fe5..a5866acbe 100644 --- a/src/common/core/limit/limit.lua +++ b/src/common/core/limit/limit.lua @@ -13,7 +13,7 @@ local has_variable = utils.has_variable local get_multiple_variables = utils.get_multiple_variables local is_whitelisted = utils.is_whitelisted local regex_match = utils.regex_match -local security_mode = utils.get_security_mode +local get_security_mode = utils.get_security_mode local time = os.time local date = os.date local encode = cjson.encode