mirror of
https://github.com/znc/znc.git
synced 2026-07-06 09:51:25 +02:00
makeconf: just warn if the config exists
Don’t require typing yes to continue, it’s inconvenient.
This commit is contained in:
+1
-5
@@ -568,11 +568,7 @@ bool CZNC::WriteNewConfig(const CString& sConfigFile) {
|
||||
m_sConfigFile = ExpandConfigPath(sConfigFile);
|
||||
|
||||
if (CFile::Exists(m_sConfigFile)) {
|
||||
CUtils::PrintStatus(false, "The config file [" + m_sConfigFile + "] already exists.");
|
||||
if (!CUtils::GetBoolInput("Would you like to overwrite it?", false))
|
||||
return false;
|
||||
} else {
|
||||
CUtils::PrintMessage("Building new config");
|
||||
CUtils::PrintStatus(false, "WARNING: config [" + m_sConfigFile + "] already exists.");
|
||||
}
|
||||
|
||||
CUtils::PrintMessage("");
|
||||
|
||||
Reference in New Issue
Block a user