makeconf: improve alternate location handling

This commit is contained in:
J-P Nurmi
2014-09-07 16:24:12 +02:00
parent 6ec56778e5
commit 25609ec0bb

View File

@@ -802,7 +802,7 @@ bool CZNC::WriteNewConfig(const CString& sConfigFile) {
}
}
if (!bFileOK) {
CUtils::GetInput("Please specify an alternate location (or \"stdout\" for displaying the config)", m_sConfigFile, m_sConfigFile);
while (!CUtils::GetInput("Please specify an alternate location", m_sConfigFile, "", "or \"stdout\" for displaying the config"));
if (m_sConfigFile.Equals("stdout"))
bFileOK = true;
else