mirror of
https://github.com/ShadowNinja/name_restrictions.git
synced 2025-03-29 07:20:32 +01:00
Fix for allowing login for exemption usernames
This commit is contained in:
parent
7004761af6
commit
1134a5ee92
3
init.lua
3
init.lua
@ -34,6 +34,9 @@ local disallowed = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
minetest.register_on_prejoinplayer(function(name, ip)
|
minetest.register_on_prejoinplayer(function(name, ip)
|
||||||
|
if exemptions[name] then return end
|
||||||
|
|
||||||
|
-- Check for disallowed and unexemptioned names
|
||||||
local lname = name:lower()
|
local lname = name:lower()
|
||||||
for re, reason in pairs(disallowed) do
|
for re, reason in pairs(disallowed) do
|
||||||
if lname:find(re) then
|
if lname:find(re) then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user