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
+4
View File
@@ -40,6 +40,10 @@ void CChan::Reset() {
}
bool CChan::WriteConfig(CFile& File) {
if (!InConfig()) {
return false;
}
File.Write("\t<Chan " + GetName() + ">\r\n");
File.Write("\t\tBuffer = " + CString::ToString(GetBufferCount()) + "\r\n");