Unmerged 'last online' so need to rethink that
parent
50c7e295bf
commit
6e4328bcc4
4
init.lua
4
init.lua
|
@ -47,7 +47,9 @@ people.is_valid_name = function(name)
|
||||||
-- Characters must be valid
|
-- Characters must be valid
|
||||||
if not name:match("^[A-Za-z0-9%_%-]+$") then return false end
|
if not name:match("^[A-Za-z0-9%_%-]+$") then return false end
|
||||||
-- Can't be the name of a player
|
-- Can't be the name of a player
|
||||||
if minetest.get_player_last_online(name) then return false end
|
-- 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
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue