Fix crash when managing privileges of offline players

This commit is contained in:
octacian 2017-07-07 19:23:53 -07:00
parent fb5fde7687
commit 5c01f365b7

View File

@ -77,6 +77,10 @@ function ranks.update_privs(player, trigger)
player = minetest.get_player_by_name(player)
end
if not player then
return
end
local name = player:get_player_name()
local rank = ranks.get_rank(player)
if rank then