]> jfr.im git - irc/rizon/znc.git/commitdiff
Don't send a MODE request when JOINing
authorUli Schlachter <redacted>
Wed, 27 Jul 2011 13:05:40 +0000 (15:05 +0200)
committerUli Schlachter <redacted>
Wed, 27 Jul 2011 13:12:03 +0000 (15:12 +0200)
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 <redacted>
IRCSock.cpp

index 6818430c2c913dae11d0ee550b13d8a7312de54c..81f298623b76dbf1de68dd30672a7b2b9afbe606 100644 (file)
@@ -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);