From dcb0bc00d465c4ce208acc993476ff6c1cbaa31f Mon Sep 17 00:00:00 2001 From: prozacx Date: Fri, 29 Apr 2005 00:28:19 +0000 Subject: [PATCH] Fixed pem file auto creation prompting git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@205 726aef4b-f618-498e-8847-2d620e286838 --- znc.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/znc.cpp b/znc.cpp index 6115c830..3c67e7ef 100644 --- a/znc.cpp +++ b/znc.cpp @@ -508,7 +508,7 @@ bool CZNC::ParseConfig(const string& sConfigFile) { if ((m_bSSL) && (!CFile::Exists(sPemFile))) { CUtils::PrintStatus(false, "Unable to locate pem file: [" + sPemFile + "]"); - if (CUtils::GetBoolInput("Would you like to create a new pem file")) { + if (CUtils::GetBoolInput("Would you like to create a new pem file", true)) { CUtils::PrintAction("Writing Pem file [" + sPemFile + "]"); if (CFile::Exists(sPemFile)) { @@ -531,11 +531,16 @@ bool CZNC::ParseConfig(const string& sConfigFile) { return false; } - CUtils::PrintAction("Resuming"); + CUtils::PrintAction("Binding to port [" + string((m_bSSL) ? "+" : "") + CUtils::ToString(m_uListenPort) + "]"); } #endif + if (!m_uListenPort) { + CUtils::PrintStatus(false, "Invalid port"); + return false; + } + if (!Listen()) { - CUtils::PrintStatus(false); + CUtils::PrintStatus(false, "Unable to bind"); return false; }