]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
When we get an event on a userrec of EVENT_ERROR, and errornum is 0, send the error...
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Thu, 2 Nov 2006 21:56:35 +0000 (21:56 +0000)
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Thu, 2 Nov 2006 21:56:35 +0000 (21:56 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5633 e03df62e-2008-0410-955e-edbf42e46eb7

src/users.cpp

index 09c23acc0be57fff0eca95ab3f760005c947d0d1..17170fdb97194237fb6f1b48684887f7e5ed5229 100644 (file)
@@ -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;
                }
        }