fix small mistake

This commit is contained in:
neon 2018-09-09 19:32:22 +02:00
parent 17b3ee0255
commit 9d5cacc511

View File

@ -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;
}