From 53254173b196f37eb6df612a2885e5d95b9627d1 Mon Sep 17 00:00:00 2001 From: Eli Young Date: Tue, 31 Mar 2015 16:44:52 -0700 Subject: [PATCH] Write config file when channel is removed (#932) --- src/Chan.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Chan.cpp b/src/Chan.cpp index 08cb76a5..3747fbdb 100644 --- a/src/Chan.cpp +++ b/src/Chan.cpp @@ -644,8 +644,6 @@ void CChan::SetKey(const CString& s) { void CChan::SetInConfig(bool b) { if (m_bInConfig != b) { m_bInConfig = b; - if (m_bInConfig) { - CZNC::Get().SetConfigState(CZNC::ECONFIG_NEED_WRITE); - } + CZNC::Get().SetConfigState(CZNC::ECONFIG_NEED_WRITE); } }