summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/users.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/users.cpp b/src/users.cpp
index d67f96e4f..2a9139643 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -771,7 +771,11 @@ void userrec::QuitUser(InspIRCd* Instance, userrec *user, const std::string &qui
reason.resize(MAXQUIT - 1);
if (IS_LOCAL(user))
+ {
user->Write("ERROR :Closing link (%s@%s) [%s]",user->ident,user->host,reason.c_str());
+ if ((!user->sendq.empty()) && (!(*user->GetWriteError())))
+ user->FlushWriteBuf();
+ }
if (user->registered == REG_ALL)
{