diff --git a/NoSteamManager/scripting/NoSteamManager.sp b/NoSteamManager/scripting/NoSteamManager.sp index a00b183..1fb203d 100644 --- a/NoSteamManager/scripting/NoSteamManager.sp +++ b/NoSteamManager/scripting/NoSteamManager.sp @@ -163,18 +163,16 @@ public Action OnClientPreAdminCheck(int client) return Plugin_Handled; } - else - { - char sIP[32]; - GetClientIP(client, sIP, sizeof(sIP)); - int iTimestamp = GetTime(); + char sIP[32]; + GetClientIP(client, sIP, sizeof(sIP)); - char sQuery[512]; - Format(sQuery, sizeof(sQuery), "INSERT INTO authenticated_steam_ids (steam_auth, last_ip, last_connect) VALUES ('%s', '%s', %d) ON DUPLICATE KEY UPDATE last_ip = '%s';", sSteamID, sIP, iTimestamp, sIP); - SQL_TQuery(g_hDatabaseAntiSpoofing, TQueryCB2, sQuery, GetClientUserId(client)); + int iTimestamp = GetTime(); + + char sQuery[512]; + Format(sQuery, sizeof(sQuery), "INSERT INTO authenticated_steam_ids (steam_auth, last_ip, last_connect) VALUES ('%s', '%s', %d) ON DUPLICATE KEY UPDATE last_ip = '%s', last_connect = %d;", sSteamID, sIP, iTimestamp, sIP, iTimestamp); + SQL_TQuery(g_hDatabaseAntiSpoofing, TQueryCB2, sQuery, GetClientUserId(client)); - } return Plugin_Continue; }