mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
Don't connect to SSLed IRC servers when ZNC is not compiled with SSL
This commit is contained in:
@@ -828,16 +828,18 @@ bool CIRCNetwork::Connect() {
|
||||
|
||||
CZNC::Get().AddServerThrottle(pServer->GetName());
|
||||
|
||||
CIRCSock *pIRCSock = new CIRCSock(this);
|
||||
pIRCSock->SetPass(pServer->GetPass());
|
||||
|
||||
bool bSSL = false;
|
||||
#ifdef HAVE_LIBSSL
|
||||
if (pServer->IsSSL()) {
|
||||
bSSL = true;
|
||||
bool bSSL = pServer->IsSSL();
|
||||
#ifndef HAVE_LIBSSL
|
||||
if (bSSL) {
|
||||
PutStatus("Cannot connect to [" + pServer->GetString(false) + "], ZNC is not compiled with SSL.");
|
||||
CZNC::Get().AddNetworkToQueue(this);
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
|
||||
CIRCSock *pIRCSock = new CIRCSock(this);
|
||||
pIRCSock->SetPass(pServer->GetPass());
|
||||
|
||||
DEBUG("Connecting user/network [" << m_sName << "/" << m_sName << "]");
|
||||
|
||||
NETWORKMODULECALL(OnIRCConnecting(pIRCSock), m_pUser, this, NULL,
|
||||
|
||||
Reference in New Issue
Block a user