summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Weber <web.alexander@web.de>2018-03-10 22:21:30 +0100
committerAlexander Weber <web.alexander@web.de>2018-03-10 22:21:30 +0100
commit9b9daa7494bd8b5b24b526ebb7b305e1a6ba7960 (patch)
tree9a4fd82dc06c6eeeeb2c59bf8b408358a8981ebd
parent5a640bc12da36ac35c33051cffaf72d82fb2cafd (diff)
Compare player assignment non case sensitive
-rw-r--r--skin_meta_api.lua5
1 files changed, 2 insertions, 3 deletions
diff --git a/skin_meta_api.lua b/skin_meta_api.lua
index ec57b58..d9ca875 100644
--- a/skin_meta_api.lua
+++ b/skin_meta_api.lua
@@ -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