fix: use right function to get the security mode in limit plugin

This commit is contained in:
Théophile Diot 2024-11-19 14:39:18 +01:00
parent d809f2f8a0
commit 53ac7975a6
No known key found for this signature in database
GPG key ID: FA995104A0BA376A
2 changed files with 2 additions and 2 deletions

View file

@ -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)$

View file

@ -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