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.
This commit is contained in:
Alexey Sokolov
2012-04-15 10:09:36 +07:00
parent f557d4b805
commit c48a686f2b

View File

@@ -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");