Backup znc.conf once when updating to networks

This copies znc.conf to znc.conf.backup, if that file doesn't exist yet.

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter
2011-09-16 11:41:01 +02:00
parent f97a6a8a26
commit b07f37b23d
3 changed files with 18 additions and 0 deletions
+1
View File
@@ -338,6 +338,7 @@ bool CUser::ParseConfig(CConfig* pConfig, CString& sError) {
}
if (pNetwork) {
CZNC::Get().BackupConfigOnce();
CUtils::PrintMessage("NOTICE: Found deprecated config, upgrading to a network");
if (!pNetwork->ParseConfig(pConfig, sError, true)) {