From 45183612c845e36f8124529f52675655c27f550b Mon Sep 17 00:00:00 2001 From: J-P Nurmi Date: Tue, 11 Aug 2015 13:58:19 +0200 Subject: [PATCH] Fix CClient::GetNickMask() A regression introduced by cebc093. A potentially empty network specific bind _host_ should not be used as nick mask _ident_. --- src/Client.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Client.cpp b/src/Client.cpp index 19c99557..e6e741f5 100644 --- a/src/Client.cpp +++ b/src/Client.cpp @@ -853,7 +853,7 @@ CString CClient::GetNickMask() const { sHost = "irc.znc.in"; } - return GetNick() + "!" + (m_pNetwork ? m_pNetwork->GetBindHost() : m_pUser->GetIdent()) + "@" + sHost; + return GetNick() + "!" + (m_pNetwork ? m_pNetwork->GetIdent() : m_pUser->GetIdent()) + "@" + sHost; } bool CClient::IsValidIdentifier(const CString& sIdentifier) {