| 29 | } |
| 30 | |
| 31 | int CEcon::DelClientCallback(int ClientId, const char *pReason, void *pUser) |
| 32 | { |
| 33 | CEcon *pThis = (CEcon *)pUser; |
| 34 | |
| 35 | char aAddrStr[NETADDR_MAXSTRSIZE]; |
| 36 | net_addr_str(pThis->m_NetConsole.ClientAddr(ClientId), aAddrStr, sizeof(aAddrStr), true); |
| 37 | char aBuf[256]; |
| 38 | str_format(aBuf, sizeof(aBuf), "client dropped. cid=%d addr=%s reason='%s'", ClientId, aAddrStr, pReason); |
| 39 | pThis->Console()->Print(IConsole::OUTPUT_LEVEL_ADDINFO, "econ", aBuf); |
| 40 | |
| 41 | pThis->m_aClients[ClientId].m_State = CClient::STATE_EMPTY; |
| 42 | return 0; |
| 43 | } |
| 44 | |
| 45 | void CEcon::ConLogout(IConsole::IResult *pResult, void *pUserData) |
| 46 | { |
nothing calls this directly
no test coverage detected