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); } }