summaryrefslogtreecommitdiff
path: root/src/users.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-10-31 20:44:47 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-10-31 20:44:47 +0000
commit986cae8a9d952562798dc8490949bf88f5af0db5 (patch)
treec249be62a8e9d8dc68a10d478f1ead590bb409d3 /src/users.cpp
parentdc5d99a9543f5027cc5d4f4ffc5716eaf7e933ec (diff)
Set write error when detected
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5610 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/users.cpp')
-rw-r--r--src/users.cpp3
1 files changed, 3 insertions, 0 deletions
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 (...)