mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 22:48:18 +00:00
reset rcon AuthTries on logout. Closes #941
This commit is contained in:
parent
5253f2ffa1
commit
d9c27c8426
|
@ -1548,6 +1548,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];
|
||||
|
|
Loading…
Reference in a new issue