add owner exemption to names per id

master
shivajiva101 2018-06-09 01:42:59 +01:00 committed by GitHub
parent c9983b5e3b
commit a5c1cdcb06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -1690,6 +1690,8 @@ minetest.register_on_prejoinplayer(function(name, ip)
local banned = active_ban(id)
if not banned then
if names_per_id then
-- owner exemption
if name == owner then return end
-- names per ip
local names = account_names(id)
-- allow existing