- std::vector<User *>::iterator a = list.begin();
-
- User *u = (*a);
- user_hash::iterator iter = ServerInstance->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);
+ User *u = *a;
+ // user has been moved onto their UID; that's why this isn't find(u->nick)
+ user_hash::iterator iter = ServerInstance->Users->clientlist->find(u->uuid);