- for (UCListIter f = user->chans.begin(); f != user->chans.end(); f++)
- {
- if ((*f)->IsModeSet('u'))
- to_leave.push_back((*f)->name);
- }
- /* We cant do this neatly in one loop, as we are modifying the map we are iterating */
- for (std::vector<std::string>::iterator n = to_leave.begin(); n != to_leave.end(); n++)
- {
- std::vector<std::string> parameters;
- parameters.push_back(*n);
- /* This triggers our OnUserPart, above, making the PART silent */
- parthandler->Handle(parameters, user);
- }