Permalink
Browse files

Warn if config was saved in too new version.

  • Loading branch information...
1 parent 689c330 commit b90bdf21dd4b259dc7f3d218f34602e0ff653657 Alexey Sokolov committed Sep 16, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 znc.cpp
View
@@ -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();

0 comments on commit b90bdf2

Please sign in to comment.