perf: early return when whitlisted found

Closes https://github.com/ESX-Org/esx_whitelist/issues/3
This commit is contained in:
Romain Lanz
2017-09-18 18:51:34 +02:00
parent ab51d046f7
commit 796bdfdf74
+1
View File
@@ -34,6 +34,7 @@ AddEventHandler('playerConnecting', function (playerName, setKickReason)
for i = 1, #WhiteList, 1 do
if (tostring(WhiteList[i]) == tostring(steamID)) then
whitelisted = true
break
end
end