From 18317b158bcca064f67d8d8157d9e1846f9683fd Mon Sep 17 00:00:00 2001 From: Fabio Bas Date: Sun, 18 Jul 2010 14:47:56 +0000 Subject: fix for #849 git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@4674 17fca916-40b9-46aa-a4ea-0a15b648b75c --- src/modules/dcc/chat.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/modules/dcc/chat.cpp') diff --git a/src/modules/dcc/chat.cpp b/src/modules/dcc/chat.cpp index 1ed7cd0d8..7c8c09fee 100644 --- a/src/modules/dcc/chat.cpp +++ b/src/modules/dcc/chat.cpp @@ -540,6 +540,7 @@ void KviDccChat::connected() updateCaption(); m_pSlaveThread = new KviDccChatThread(this,m_pMarshal->releaseSocket()); + #ifdef COMPILE_SSL_SUPPORT KviSSL * s = m_pMarshal->releaseSSL(); if(s) @@ -556,6 +557,12 @@ void KviDccChat::connected() &(m_pMarshal->remoteIp()),&(m_pMarshal->remotePort())); output(KVI_OUT_DCCMSG,__tr2qs_ctx("Local end is %Q:%Q","dcc"), &(m_pMarshal->localIp()),&(m_pMarshal->localPort())); +#ifdef COMPILE_SSL_SUPPORT + QString tmp = QString("dcc: %1 %2@%3:%4").arg(m_pDescriptor->bIsSSL ? "SChat" : "Chat", m_pDescriptor->szNick, m_pDescriptor->szIp, m_pDescriptor->szPort); +#else + QString tmp = QString("dcc: %1 %2@%3:%4").arg("Chat", m_pDescriptor->szNick, m_pDescriptor->szIp, m_pDescriptor->szPort); +#endif + m_pLabel->setText(tmp); } } -- cgit v1.3.1-10-gc9f91