From f1cb09bd9ce0489d96f4ef91b3e226e0b0a37662 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Wed, 27 Jul 2011 15:05:40 +0200 Subject: [PATCH] Don't send a MODE request when JOINing Since commit 1a1cc4c756e, we'd always send a "MODE #chan" to IRC when we received a "JOIN #chan". It used to work before that commit, because the mode reply which is automatically sent on join is sent before the "end of /names" numeric. This just removes that MODE request. Proper IRC server should always send a MODE reply on channel join. Thanks to nyuszika7h`` for the report. Signed-off-by: Uli Schlachter --- IRCSock.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/IRCSock.cpp b/IRCSock.cpp index 6818430c..81f29862 100644 --- a/IRCSock.cpp +++ b/IRCSock.cpp @@ -444,8 +444,6 @@ void CIRCSock::ReadLine(const CString& sData) { pChan->ResetJoinTries(); pChan->Enable(); pChan->SetIsOn(true); - PutIRC("MODE " + pChan->GetName()); - } } else { pChan = m_pUser->FindChan(sChan);