mirror of
https://github.com/znc/znc.git
synced 2026-05-03 03:52:33 +02:00
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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user