From c48a686f2b90c4f7e55528aba8a486b0d2af9dc8 Mon Sep 17 00:00:00 2001 From: Alexey Sokolov Date: Sun, 15 Apr 2012 10:09:36 +0700 Subject: [PATCH] Put version info to config during --makeconf This fixes erroneous message "Found old config from ZNC < 0.203. Saving a backup of it." when creating new config. --- src/znc.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/znc.cpp b/src/znc.cpp index 17d3e284..98f9eb38 100644 --- a/src/znc.cpp +++ b/src/znc.cpp @@ -526,6 +526,7 @@ bool CZNC::WriteNewConfig(const CString& sConfigFile) { VCString vsLines; vsLines.push_back(MakeConfigHeader()); + vsLines.push_back("Version = " + CString(VERSION, 3)); m_sConfigFile = ExpandConfigPath(sConfigFile); CUtils::PrintMessage("Building new config");