Properly show if we are connecting to a ssl server

Idea by DarthGandalf, crappy commit message by me.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2078 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
psychon
2010-07-10 06:53:10 +00:00
parent 47a5ab3751
commit e0dda30871
3 changed files with 6 additions and 5 deletions
+3 -2
View File
@@ -34,6 +34,7 @@ unsigned short CServer::GetPort() const { return m_uPort; }
const CString& CServer::GetPass() const { return m_sPass; }
bool CServer::IsSSL() const { return m_bSSL; }
CString CServer::GetString() const {
return m_sName + " " + CString(m_bSSL ? "+" : "") + CString(m_uPort) + CString(m_sPass.empty() ? "" : " " + m_sPass);
CString CServer::GetString(bool bIncludePassword) const {
return m_sName + " " + CString(m_bSSL ? "+" : "") + CString(m_uPort) +
CString(bIncludePassword ? (m_sPass.empty() ? "" : " " + m_sPass) : "");
}