mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 14:38:18 +00:00
Fixed econ clients don't get dropped when banned
This commit is contained in:
parent
f9f9249477
commit
d41c4b4dbd
|
@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue