mirror of
https://github.com/znc/znc.git
synced 2026-08-06 17:03:14 +02:00
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:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user