1
0
mirror of https://github.com/anope/anope.git synced 2026-06-30 04:36:38 +02:00

Dont check for noquit/quitstorm, check and be sure all users are gone regardless

This commit is contained in:
Adam
2013-05-05 01:58:45 -04:00
parent 2044b4d3ad
commit 10b5b00db4
+8 -11
View File
@@ -125,22 +125,19 @@ Server::~Server()
{
Log(this, "quit") << "quit from " << (this->uplink ? this->uplink->GetName() : "no uplink") << " for " << this->quit_reason;
if (Servers::Capab.count("NOQUIT") > 0 || Servers::Capab.count("QS") > 0)
for (user_map::const_iterator it = UserListByNick.begin(); it != UserListByNick.end(); ++it)
{
for (user_map::const_iterator it = UserListByNick.begin(); it != UserListByNick.end(); ++it)
User *u = it->second;
if (u->server == this)
{
User *u = it->second;
if (u->server == this)
{
u->Quit(this->quit_reason);
u->server = NULL;
}
u->Quit(this->quit_reason);
u->server = NULL;
}
Log(LOG_DEBUG) << "Finished removing all users for " << this->GetName();
}
Log(LOG_DEBUG) << "Finished removing all users for " << this->GetName();
if (this->uplink)
this->uplink->DelLink(this);