Skip to content

Commit

Permalink
Put version info to config during --makeconf
Browse files Browse the repository at this point in the history
This fixes erroneous message
"Found old config from ZNC < 0.203. Saving a backup of it." when
creating new config.
  • Loading branch information
DarthGandalf committed Apr 15, 2012
1 parent f557d4b commit c48a686
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/znc.cpp
Expand Up @@ -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");
Expand Down

0 comments on commit c48a686

Please sign in to comment.