From 986cae8a9d952562798dc8490949bf88f5af0db5 Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 31 Oct 2006 20:44:47 +0000 Subject: Set write error when detected git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5610 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/users.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/users.cpp b/src/users.cpp index 6acbf137a..3afdb5796 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -2039,6 +2039,9 @@ void userrec::HandleEvent(EventType et, int errornum) case EVENT_WRITE: this->FlushWriteBuf(); break; + case EVENT_ERROR: + this->SetWriteError(strerror(errornum)); + break; } } catch (...) -- cgit v1.2.3