- if (reason.length() > MAXQUIT - 1)
- reason.resize(MAXQUIT - 1);
- if (oper_reason.length() > MAXQUIT - 1)
- oper_reason.resize(MAXQUIT - 1);
-
- if (a->GetUser()->registered != REG_ALL)
- if (ServerInstance->unregistered_count)
- ServerInstance->unregistered_count--;
-
- if (IS_LOCAL(a->GetUser()))
- {
- a->GetUser()->Write("ERROR :Closing link (%s@%s) [%s]", a->GetUser()->ident, a->GetUser()->host, oper_reason.c_str());
- if ((!a->GetUser()->sendq.empty()) && (!(*a->GetUser()->GetWriteError())))
- a->GetUser()->FlushWriteBuf();
- }
-
- if (a->GetUser()->registered == REG_ALL)