fix small mistake
This commit is contained in:
		
							parent
							
								
									17b3ee0255
								
							
						
					
					
						commit
						9d5cacc511
					
				@ -163,18 +163,16 @@ public Action OnClientPreAdminCheck(int client)
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
		return Plugin_Handled;
 | 
							return Plugin_Handled;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	else
 | 
					
 | 
				
			||||||
	{
 | 
					 | 
				
			||||||
	char sIP[32];
 | 
						char sIP[32];
 | 
				
			||||||
	GetClientIP(client, sIP, sizeof(sIP));
 | 
						GetClientIP(client, sIP, sizeof(sIP));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	int iTimestamp = GetTime();
 | 
						int iTimestamp = GetTime();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	char sQuery[512];
 | 
						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);
 | 
						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));
 | 
						SQL_TQuery(g_hDatabaseAntiSpoofing, TQueryCB2, sQuery, GetClientUserId(client));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
	return Plugin_Continue;
 | 
						return Plugin_Continue;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user