From d41c4b4dbda0fdf4bd75165f67410c7eaf073069 Mon Sep 17 00:00:00 2001 From: encypruon Date: Sat, 22 Aug 2015 02:58:12 +0200 Subject: [PATCH] Fixed econ clients don't get dropped when banned --- src/engine/shared/econ.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/engine/shared/econ.cpp b/src/engine/shared/econ.cpp index e0df8635b..da2e87bea 100644 --- a/src/engine/shared/econ.cpp +++ b/src/engine/shared/econ.cpp @@ -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"); } } }