mirror of
https://github.com/ShadowNinja/name_restrictions.git
synced 2025-01-05 15:10:19 +01:00
Update init.lua
This commit is contained in:
parent
1134a5ee92
commit
ba56509c39
3
init.lua
3
init.lua
@ -51,6 +51,9 @@ end)
|
|||||||
------------------------
|
------------------------
|
||||||
|
|
||||||
minetest.register_on_prejoinplayer(function(name, ip)
|
minetest.register_on_prejoinplayer(function(name, ip)
|
||||||
|
if exemptions[name] then return end
|
||||||
|
|
||||||
|
-- Check for used names
|
||||||
local lname = name:lower()
|
local lname = name:lower()
|
||||||
for iname, data in pairs(minetest.auth_table) do
|
for iname, data in pairs(minetest.auth_table) do
|
||||||
if iname:lower() == lname and iname ~= name then
|
if iname:lower() == lname and iname ~= name then
|
||||||
|
Loading…
Reference in New Issue
Block a user