diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-10-30 20:38:32 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-10-30 20:38:32 +0000 |
commit | 1aaee19ee96eef97eb75bfaaf4cf38db74d0dc6c (patch) | |
tree | 373c55872acd64b3188d383ae02f7f69559f5f5c | |
parent | ce82b3bd6bed1d0a5dd54a6f9d6a6e813944bb1f (diff) |
Fix broken quits (i broke them by taking out a check i didnt think was required -- it was. RTFS!)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5590 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | src/userprocess.cpp | 3 | ||||
-rw-r--r-- | src/users.cpp | 2 |
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 = ""; } |