Disabled GUID and ban check when database is disabled (fixes #83).

This commit is contained in:
Timo Smit 2018-02-13 11:02:38 +01:00
parent 8ef2d13015
commit 25af884c7e

View file

@ -42,7 +42,7 @@ function admin.setPlayerLevel(clientId, level)
end
function admin.onClientConnectAttempt(clientId, firstTime, isBot)
if firstTime then
if firstTime and settings.get("db_type") ~= "none" then
local guid = et.Info_ValueForKey(et.trap_GetUserinfo(clientId), "cl_guid")
if guid == "" or guid == "NO_GUID" or guid == "unknown" then