summaryrefslogtreecommitdiff
path: root/src/uplink.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-01-03 11:41:32 -0500
committerAdam <Adam@anope.org>2013-01-03 12:34:01 -0500
commit098157dca8a4aecc18294cbc31cbe5ee95b35a94 (patch)
tree654f00f21e151ba9007ca8eb044a78fef1bd6e39 /src/uplink.cpp
parent827469600e8cf98fea7aec09ceaa77a097300b72 (diff)
Don't delete users immediately when quit or killed, instead wait until message processing is done
Diffstat (limited to 'src/uplink.cpp')
-rw-r--r--src/uplink.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/uplink.cpp b/src/uplink.cpp
index 9490329b3..7c9c77888 100644
--- a/src/uplink.cpp
+++ b/src/uplink.cpp
@@ -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;
}