aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Voker572008-09-07 12:41:52 +0000
committerGravatar Voker572008-09-07 12:41:52 +0000
commitdd9e407c2b35dbc987d03879f5a6201a8b508a3c (patch)
tree0fd263d8a83e3cc2dd57491acf0772073e5205f8 /src
parentupdated todo (diff)
downloadKVIrc-dd9e407c2b35dbc987d03879f5a6201a8b508a3c.tar.gz
KVIrc-dd9e407c2b35dbc987d03879f5a6201a8b508a3c.tar.bz2
KVIrc-dd9e407c2b35dbc987d03879f5a6201a8b508a3c.zip
Fixing compilation w/o SSL
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@2417 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src')
-rw-r--r--src/kvirc/sparser/kvi_sp_numeric.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/kvirc/sparser/kvi_sp_numeric.cpp b/src/kvirc/sparser/kvi_sp_numeric.cpp
index 31805280b..3fe1f3665 100644
--- a/src/kvirc/sparser/kvi_sp_numeric.cpp
+++ b/src/kvirc/sparser/kvi_sp_numeric.cpp
@@ -2022,7 +2022,7 @@ void KviServerParser::parseNumericStartTls(KviIrcMessage * msg)
// :prefix 670 <nickname> :STARTTLS successful, go ahead with TLS handshake
// 671: RPL_STARTTLSFAIL
// :prefix 671 <nickname> :STARTTLS failure
-
+
bool bEnable = false;
switch(msg->numeric())
@@ -2037,7 +2037,9 @@ void KviServerParser::parseNumericStartTls(KviIrcMessage * msg)
break;
}
+ #ifdef COMPILE_SSL_SUPPORT
msg->connection()->enableStartTlsSupport(bEnable);
+ #endif
}
void KviServerParser::parseNumericNotRegistered(KviIrcMessage * msg)
@@ -2046,7 +2048,8 @@ void KviServerParser::parseNumericNotRegistered(KviIrcMessage * msg)
// :prefix 451 PING :You have not registered
KviIrcConnectionStateData * pStateData = msg->connection()->stateData();
-
+ #ifdef COMPILE_SSL_SUPPORT
if(pStateData->sentStartTls())
msg->connection()->enableStartTlsSupport(false);
+ #endif
}