From fa85cede5336c399f9b12efde169bad6f6842d8d Mon Sep 17 00:00:00 2001 From: oy Date: Sun, 4 Mar 2012 12:47:02 +0100 Subject: [PATCH] reset rcon AuthTries on logout. Closes #941 --- src/engine/server/server.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/engine/server/server.cpp b/src/engine/server/server.cpp index a231d1e8d..f7b54df56 100644 --- a/src/engine/server/server.cpp +++ b/src/engine/server/server.cpp @@ -1544,6 +1544,7 @@ void CServer::ConLogout(IConsole::IResult *pResult, void *pUser) pServer->SendMsgEx(&Msg, MSGFLAG_VITAL, pServer->m_RconClientID, true); pServer->m_aClients[pServer->m_RconClientID].m_Authed = AUTHED_NO; + pServer->m_aClients[pServer->m_RconClientID].m_AuthTries = 0; pServer->m_aClients[pServer->m_RconClientID].m_pRconCmdToSend = 0; pServer->SendRconLine(pServer->m_RconClientID, "Logout successful."); char aBuf[32];