Warn if config was saved in too new version.

This commit is contained in:
Alexey Sokolov
2011-09-16 23:42:33 +07:00
parent 689c330d51
commit b90bdf21dd
+2
View File
@@ -1094,6 +1094,8 @@ bool CZNC::DoRehash(CString& sError)
}
CUtils::PrintMessage("Found old config from ZNC " + sSavedVersion + ". Saving a backup of it.");
BackupConfigOnce("pre-" + CString(VERSION, 3));
} else if (fSavedVersion > VERSION) {
CUtils::PrintError("Config was saved from ZNC " + sSavedVersion + ". It may or may not work with current ZNC " + GetVersion());
}
m_vsBindHosts.clear();