summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/userprocess.cpp3
-rw-r--r--src/users.cpp2
2 files changed, 4 insertions, 1 deletions
diff --git a/src/userprocess.cpp b/src/userprocess.cpp
index 5ae0812c1..76a66e4a0 100644
--- a/src/userprocess.cpp
+++ b/src/userprocess.cpp
@@ -201,6 +201,9 @@ void InspIRCd::ProcessUser(userrec* cu)
* table, life is much easier (and FASTER)
*/
EventHandler* new_comp = this->SE->GetRef(currfd);
+
+ if (new_comp != old_comp)
+ return;
}
return;
diff --git a/src/users.cpp b/src/users.cpp
index 067e3068f..2c49e1ec7 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -633,7 +633,7 @@ void userrec::FlushWriteBuf()
{
try
{
- if (this->fd == FD_MAGIC_NUMBER)
+ if ((this->fd == FD_MAGIC_NUMBER) || (*this->GetWriteError()))
{
sendq = "";
}