Fixed econ clients don't get dropped when banned

This commit is contained in:
encypruon 2015-08-22 02:58:12 +02:00 committed by oy
parent f9f9249477
commit d41c4b4dbd

View file

@ -135,10 +135,9 @@ void CEcon::Update()
m_NetConsole.Send(ClientID, aMsg);
if(m_aClients[ClientID].m_AuthTries >= MAX_AUTH_TRIES)
{
if(!g_Config.m_EcBantime)
m_NetConsole.Drop(ClientID, "Too many authentication tries");
else
if(g_Config.m_EcBantime)
m_NetConsole.NetBan()->BanAddr(m_NetConsole.ClientAddr(ClientID), g_Config.m_EcBantime*60, "Too many authentication tries");
m_NetConsole.Drop(ClientID, "Too many authentication tries");
}
}
}