summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/users.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/users.cpp b/src/users.cpp
index 986aea4cb..0d6b0d990 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -2130,7 +2130,8 @@ void userrec::HandleEvent(EventType et, int errornum)
this->FlushWriteBuf();
break;
case EVENT_ERROR:
- this->SetWriteError(errornum ? strerror(errornum) : "EOF from client");
+ /** This should be safe, but dont DARE do anything after it -- Brain */
+ userrec::QuitUser(ServerInstance, this, errornum ? strerror(errornum) : "EOF from client");
break;
}
}