mirror of
https://github.com/znc/znc.git
synced 2026-05-07 13:54:47 +02:00
Change Channel SetInConfig/SetKey to use ECONFIG_DELAYED_WRITE
This commit is contained in:
+2
-2
@@ -700,7 +700,7 @@ void CChan::SetKey(const CString& s) {
|
||||
if (m_sKey != s) {
|
||||
m_sKey = s;
|
||||
if (m_bInConfig) {
|
||||
CZNC::Get().SetConfigState(CZNC::ECONFIG_NEED_WRITE);
|
||||
CZNC::Get().SetConfigState(CZNC::ECONFIG_DELAYED_WRITE);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -708,7 +708,7 @@ void CChan::SetKey(const CString& s) {
|
||||
void CChan::SetInConfig(bool b) {
|
||||
if (m_bInConfig != b) {
|
||||
m_bInConfig = b;
|
||||
CZNC::Get().SetConfigState(CZNC::ECONFIG_NEED_WRITE);
|
||||
CZNC::Get().SetConfigState(CZNC::ECONFIG_DELAYED_WRITE);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user