summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-26 13:18:38 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-26 13:18:38 +0000
commit040cd2edde65cdd5e35e0a09c048a00ddc5a3431 (patch)
treed6f31ecdec63cafa12941ad45cb730ec6f7d2253 /src
parent1acf56c1ed6c3c41f619125fb6eca32e7abcc405 (diff)
IS_LOCAL check on flushwritebuf
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3756 e03df62e-2008-0410-955e-edbf42e46eb7
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 ccf754736..e67ad7cec 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -464,7 +464,8 @@ void kill_link(userrec *user,const char* r)
WriteCommonExcept(user,"QUIT :%s",reason);
}
- user->FlushWriteBuf();
+ if (IS_LOCAL(user))
+ user->FlushWriteBuf();
FOREACH_MOD(I_OnUserDisconnect,OnUserDisconnect(user));