why did we not auto kick for this before?.... oh well lost knowledge
This commit is contained in:
parent
d78c39cf3c
commit
6867ef2482
@ -229,6 +229,7 @@ public bool Filter_NoSteam(const char[] sPattern, Handle hClients)
|
||||
//----------------------------------------------------------------------------------------------------
|
||||
public EConnect OnClientPreConnectEx(const char[] sName, char sPassword[255], const char[] sIP, const char[] sSteam32ID, char sRejectReason[255])
|
||||
{
|
||||
//LogMessage("OnClientPreConnectEx sName: %s. sRejectReason: %s. sSteam32ID: %s", sName, sRejectReason, sSteam32ID);
|
||||
char sAuthID[32];
|
||||
for(int client = 1; client <= MaxClients; client++)
|
||||
{
|
||||
@ -274,6 +275,7 @@ public void OnClientAuthorized(int client, const char[] sAuthID)
|
||||
GetClientIP(client, sAddress, sizeof(sAddress));
|
||||
static char sCountry[32];
|
||||
//just kicking all nosteamers from algeria. not very cool but so be it.
|
||||
/*
|
||||
if (GeoipCountry(sAddress, sCountry, sizeof(sCountry)) && StrEqual(sCountry, "Algeria", false))
|
||||
{
|
||||
if (!SteamClientAuthenticatedEx(sAuthID))
|
||||
@ -283,6 +285,7 @@ public void OnClientAuthorized(int client, const char[] sAuthID)
|
||||
return;
|
||||
}
|
||||
}
|
||||
*/
|
||||
if(!g_hCvar_BlockSpoof.BoolValue || !g_hDatabase)
|
||||
return;
|
||||
|
||||
@ -478,11 +481,7 @@ public void SQL_OnQueryCompleted(Database db, DBResultSet results, const char[]
|
||||
{
|
||||
LogAction(client, -1, "\"%L\" tried to join with a legitimate steamid while not authenticated with steam. Refusing connection, IPs dont match. (Known: %s | Current: %s)", client, sResultAddress, sAddress);
|
||||
static char sCountry[32];
|
||||
//we were directly got a problem with an algerian. this is just a specific issue with a specific solution.
|
||||
if (GeoipCountry(sAddress, sCountry, sizeof(sCountry)) && StrEqual(sCountry, "Algeria", false))
|
||||
{
|
||||
KickClient(client, "Trying to join with a legitimate steamid while not authenticated with steam.");
|
||||
}
|
||||
KickClient(client, "Trying to join with a legitimate steamid while not authenticated with steam.");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user