diff --git a/src/znc.cpp b/src/znc.cpp index 2e347a60..0b3265b9 100644 --- a/src/znc.cpp +++ b/src/znc.cpp @@ -791,14 +791,15 @@ bool CZNC::WriteNewConfig(const CString& sConfigFile) { } CString sHost, sPass, sHint; - bool bSSL = false; + #ifdef HAVE_LIBSSL + bool bSSL = true; + #else + bool bSSL = false; + #endif unsigned int uServerPort = 0; if (sNetwork.Equals("libera")) { sHost = "irc.libera.chat"; -#ifdef HAVE_LIBSSL - bSSL = true; -#endif } else { sHint = "host only"; }