Re-add detection of player name clash
parent
f1009abccc
commit
938759342a
4
init.lua
4
init.lua
|
@ -47,9 +47,7 @@ people.is_valid_name = function(name)
|
|||
-- Characters must be valid
|
||||
if not name:match("^[A-Za-z0-9%_%-]+$") then return false end
|
||||
-- Can't be the name of a player
|
||||
-- TODO - re-merge get_player_last_online or find another way
|
||||
-- of doing this!
|
||||
-- if minetest.get_player_last_online(name) then return false end
|
||||
if minetest.auth_table[name] then return false end
|
||||
return true
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue