Namespace settings

This commit is contained in:
ShadowNinja 2014-10-14 14:36:58 -04:00
parent 71184a97b6
commit 325aed0072
1 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@
-- For legitimate player names that are caught by the filters.
local exemptions = {}
local temp = minetest.setting_get("restriction_exempted_names")
local temp = minetest.setting_get("name_restrictions.exemptions")
temp = temp and temp:split() or {}
for _, allowed_name in pairs(temp) do
exemptions[allowed_name] = true
@ -134,7 +134,7 @@ end)
-- Name length --
-----------------
local min_name_len = tonumber(minetest.setting_get("minimum_name_length")) or 3
local min_name_len = tonumber(minetest.setting_get("name_restrictions.minimum_name_length")) or 3
minetest.register_on_prejoinplayer(function(name, ip)
if exemptions[name] then return end