summaryrefslogtreecommitdiff
path: root/src/users.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-11-02 21:56:35 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-11-02 21:56:35 +0000
commit139285820f9fa625713fb757ad868fb0642a0409 (patch)
tree7dfaf7ca29d1792ac57d41b3cbb7e46ced8d73d0 /src/users.cpp
parentc926070195545fcded6581623ce49a0ef57af032 (diff)
When we get an event on a userrec of EVENT_ERROR, and errornum is 0, send the error message "EOF from client" rather than using strerror and getting: Quit (Unknown error: 0)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5633 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/users.cpp')
-rw-r--r--src/users.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/users.cpp b/src/users.cpp
index 09c23acc0..17170fdb9 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -2043,7 +2043,7 @@ void userrec::HandleEvent(EventType et, int errornum)
this->FlushWriteBuf();
break;
case EVENT_ERROR:
- this->SetWriteError(strerror(errornum));
+ this->SetWriteError(errnum ? strerror(errornum) : "EOF from client");
break;
}
}