1
0
mirror of https://github.com/anope/anope.git synced 2026-06-26 15:56:39 +02:00

Don't delete users immediately when quit or killed, instead wait until message processing is done

This commit is contained in:
Adam
2013-01-03 11:41:32 -05:00
parent 827469600e
commit 098157dca8
25 changed files with 133 additions and 114 deletions
+7 -2
View File
@@ -116,9 +116,14 @@ UplinkSocket::~UplinkSocket()
}
}
bool UplinkSocket::Read(const Anope::string &buf)
bool UplinkSocket::ProcessRead()
{
Anope::Process(buf);
BufferedSocket::ProcessRead();
for (Anope::string buf; (buf = this->GetLine()).empty() == false;)
{
Anope::Process(buf);
User::QuitUsers();
}
return true;
}