- std::vector<User *>::iterator a = list.begin();
-
- User *u = (*a);
- user_hash::iterator iter = ServerInstance->Users->clientlist->find(u->nick);
- const char* preset_reason = u->GetOperQuit();
- std::string reason = u->operquitmsg;
- std::string oper_reason = *preset_reason ? preset_reason : u->operquitmsg;
-
- if (reason.length() > MAXQUIT - 1)
- reason.resize(MAXQUIT - 1);
- if (oper_reason.length() > MAXQUIT - 1)
- oper_reason.resize(MAXQUIT - 1);
-
- if (u->registered != REG_ALL)
- if (ServerInstance->Users->unregistered_count)
- ServerInstance->Users->unregistered_count--;
-
- if (IS_LOCAL(u))
- {
- if ((!u->sendq.empty()) && (!(*u->GetWriteError())))
- u->FlushWriteBuf();
- }
-
- if (u->registered == REG_ALL)