Backup znc.conf when upgrading ZNC.

Now ZNC saves its version to znc.conf.
When ZNC tries to load znc.conf, it compares stored version with running
one. If the stored version is older, make a backup.
This commit is contained in:
Alexey Sokolov
2011-09-16 23:37:30 +07:00
parent e029dded0d
commit 689c330d51
3 changed files with 15 additions and 5 deletions

View File

@@ -338,7 +338,6 @@ 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)) {