From ff4c3f4f03d3bd3eec2accbf3f69980d3a3858e2 Mon Sep 17 00:00:00 2001 From: psychon Date: Tue, 30 Mar 2010 15:09:32 +0000 Subject: [PATCH] Don't forward our own QUITs to clients Colloquy disconnects if it receives a QUIT from the server. Also, the old behavior wasn't really consistent, a quit was only forwarded if the user was in any non-detached channels. git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1860 726aef4b-f618-498e-8847-2d620e286838 --- IRCSock.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/IRCSock.cpp b/IRCSock.cpp index 3cdd1de9..73236272 100644 --- a/IRCSock.cpp +++ b/IRCSock.cpp @@ -384,6 +384,10 @@ void CIRCSock::ReadLine(const CString& sData) { if (Nick.GetNick().Equals(GetNick())) { m_pUser->PutStatus("You quit [" + sMessage + "]"); + // We don't call module hooks and we don't + // forward this quit to clients (Some clients + // disconnect if they receive such a QUIT) + return; } vector vFoundChans;