void User::PurgeEmptyChannels() { // firstly decrement the count on each channel for (UCListIter f = this->chans.begin(); f != this->chans.end(); f++) { Channel* c = *f; c->DelUser(this); } this->UnOper(); }
void User::PurgeEmptyChannels() { // firstly decrement the count on each channel for (User::ChanList::iterator i = this->chans.begin(); i != this->chans.end(); ) { Channel* c = (*i)->chan; ++i; c->DelUser(this); } this->UnOper(); }