Don't write chan to config if !InConfig()

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@498 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
prozacx
2005-09-16 03:00:13 +00:00
parent 7e7e85a22f
commit 55b1c1fe5c
2 changed files with 10 additions and 3 deletions
+6 -3
View File
@@ -400,9 +400,12 @@ bool CUser::WriteConfig(CFile& File) {
// Chans
for (unsigned int c = 0; c < m_vChans.size(); c++) {
File.Write("\r\n");
if (!m_vChans[c]->WriteConfig(File)) {
return false;
CChan* pChan = m_vChans[c];
if (pChan->InConfig()) {
File.Write("\r\n");
if (!pChan->WriteConfig(File)) {
return false;
}
}
}