diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-07-19 22:08:21 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-07-19 22:08:21 +0000 |
commit | a3caa8ccd9a48064e7483100ae2b355c52421529 (patch) | |
tree | 07db39fd406d50ea885545d7186ff9ddc1e01efc /src/users.cpp | |
parent | fb3471e948092a5cbf9bea63272e190d5b7951f3 (diff) |
Fix for bug #326, 'no error' quit can no longer theoretically occur because all errno == 0 are weeded out with a shorthand if() on calling userrec::SetWriteError, before, only one of three occurances
was.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7478 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/users.cpp')
-rw-r--r-- | src/users.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/users.cpp b/src/users.cpp index 7da7d6b09..8b9227083 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -741,7 +741,7 @@ void userrec::FlushWriteBuf() { /* Fatal error, set write error and bail */ - this->SetWriteError(strerror(errno)); + this->SetWriteError(errno ? strerror(errno) : "EOF from client"); return; } } |