From ad7bd6d7eed84648638e1b6fd69546b9fe496576 Mon Sep 17 00:00:00 2001 From: Alexey Sokolov Date: Mon, 26 Jan 2026 22:07:59 +0000 Subject: [PATCH] Don't try to join channel which ZNC is already on. When Goguma connects to ZNC, it joins the joined channels again and again, triggering flood protection. Note: even with this fix, the Goguma+ZNC experience is still pretty bad and requires doing something about repeating chat history --- src/Chan.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Chan.cpp b/src/Chan.cpp index 9cd979d5..b1cd707f 100644 --- a/src/Chan.cpp +++ b/src/Chan.cpp @@ -143,7 +143,7 @@ void CChan::JoinUser(const CString& sKey) { if (!IsOn() && !sKey.empty()) { SetKey(sKey); } - if (m_pNetwork->IsIRCConnected()) { + if (m_pNetwork->IsIRCConnected() && !IsOn()) { m_pNetwork->PutIRC("JOIN " + GetName() + " " + GetKey()); } }