summaryrefslogtreecommitdiff
path: root/src/userprocess.cpp
diff options
context:
space:
mode:
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;
}
}