diff --git a/Chan.cpp b/Chan.cpp
index c83566c9..f14d85d6 100644
--- a/Chan.cpp
+++ b/Chan.cpp
@@ -39,6 +39,20 @@ void CChan::Reset() {
ClearNicks();
}
+bool CChan::WriteConfig(CFile& File) {
+ File.Write("\t\r\n");
+
+ File.Write("\t\tBuffer = " + CString::ToString(GetBufferCount()) + "\r\n");
+ File.Write("\t\tKeepBuffer = " + CString((KeepBuffer()) ? "true" : "false") + "\r\n");
+ File.Write("\t\tDetached = " + CString((IsDetached()) ? "true" : "false") + "\r\n");
+ File.Write("\t\tAutoCycle = " + CString((AutoCycle()) ? "true" : "false") + "\r\n");
+ if (!GetKey().empty()) { File.Write("\t\tKey = " + GetKey() + "\r\n"); }
+ if (!GetDefaultModes().empty()) { File.Write("\t\tModes = " + GetDefaultModes() + "\r\n"); }
+
+ File.Write("\t\r\n");
+ return true;
+}
+
void CChan::Joined() {
}
diff --git a/Chan.h b/Chan.h
index d48c15e0..2cff6177 100644
--- a/Chan.h
+++ b/Chan.h
@@ -4,6 +4,7 @@
#include "main.h"
#include "Nick.h"
#include "String.h"
+#include "FileUtils.h"
#include
#include