summaryrefslogtreecommitdiff
path: root/src/userprocess.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-07-19 22:08:21 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-07-19 22:08:21 +0000
commita3caa8ccd9a48064e7483100ae2b355c52421529 (patch)
tree07db39fd406d50ea885545d7186ff9ddc1e01efc /src/userprocess.cpp
parentfb3471e948092a5cbf9bea63272e190d5b7951f3 (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/userprocess.cpp')
-rw-r--r--src/userprocess.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/userprocess.cpp b/src/userprocess.cpp
index b27844fb6..3b9e717df 100644
--- a/src/userprocess.cpp
+++ b/src/userprocess.cpp
@@ -174,7 +174,7 @@ void InspIRCd::ProcessUser(userrec* cu)
if ((result == -1) && (errno != EAGAIN) && (errno != EINTR))
{
- cu->SetWriteError(strerror(errno));
+ cu->SetWriteError(errno ? strerror(errno) : "EOF from client");
return;
}
}