And then insert the following Lua script in the event "OnExceedUSERPASS":
Code: Select all
local ipmasks = c_GetGlobalIPMaskList()
local g_ipmasks = {}
if type(ipmasks) == "table" then
for _,ipmask in pairs(ipmasks) do
local temp = {}
table.insert(temp,ipmask.ip)
table.insert(temp,ipmask.refuse)
table.insert(temp,ipmask.comment)
table.insert(g_ipmasks,temp)
end
end
table.insert(g_ipmasks,{"%IP",true})
c_SetGlobalIPMaskList(g_ipmasks)