Compare player assignment non case sensitive

This commit is contained in:
Alexander Weber 2018-03-10 22:21:30 +01:00
parent 5a640bc12d
commit 9b9daa7494

View File

@ -73,7 +73,6 @@ end
function skin_class:is_applicable_for_player(playername)
local assigned_player = self:get_meta("playername")
return assigned_player == nil or
assigned_player == playername or
assigned_player == true
return assigned_player == nil or assigned_player == true or
(assigned_player:lower() == playername:lower())
end