Re-add detection of player name clash

master
Ciaran Gultnieks 2014-11-08 14:13:51 +00:00
parent f1009abccc
commit 938759342a
1 changed files with 1 additions and 3 deletions

View File

@ -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