| 3600 | } |
| 3601 | |
| 3602 | void CServer::AuthRemoveKey(int KeySlot) |
| 3603 | { |
| 3604 | m_AuthManager.RemoveKey(KeySlot); |
| 3605 | LogoutKey(KeySlot, "key removal"); |
| 3606 | |
| 3607 | // Update indices. |
| 3608 | for(auto &Client : m_aClients) |
| 3609 | { |
| 3610 | if(Client.m_AuthKey == KeySlot) |
| 3611 | { |
| 3612 | Client.m_AuthKey = -1; |
| 3613 | } |
| 3614 | else if(Client.m_AuthKey > KeySlot) |
| 3615 | { |
| 3616 | --Client.m_AuthKey; |
| 3617 | } |
| 3618 | } |
| 3619 | } |
| 3620 | |
| 3621 | void CServer::ConAuthAdd(IConsole::IResult *pResult, void *pUser) |
| 3622 | { |
no test coverage detected