| 142 | |
| 143 | |
| 144 | void CClientList::UpdateClientID( CUpDownClient* client, uint32 newID ) |
| 145 | { |
| 146 | // Sanity check |
| 147 | if ( ( client->GetClientState() != CS_LISTED ) || ( client->GetUserIDHybrid() == newID ) ) |
| 148 | return; |
| 149 | |
| 150 | // First remove the ID entry |
| 151 | RemoveIDFromList( client ); |
| 152 | |
| 153 | // Add the new entry |
| 154 | m_clientList.insert( IDMapPair( newID, CCLIENTREF(client, "CClientList::UpdateClientID") ) ); |
| 155 | } |
| 156 | |
| 157 | |
| 158 | void CClientList::UpdateClientIP( CUpDownClient* client, uint32 newIP ) |
no test coverage detected