From 88c96801baaedbfc3e952a7d47530956fe8bed6e Mon Sep 17 00:00:00 2001 From: Kyle Fuller Date: Tue, 17 Jan 2012 21:40:14 +0000 Subject: [PATCH] CTCP's with no values should not be passed to the client Fixes #105 --- IRCSock.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/IRCSock.cpp b/IRCSock.cpp index 80cb4a70..d31830e8 100644 --- a/IRCSock.cpp +++ b/IRCSock.cpp @@ -808,6 +808,10 @@ bool CIRCSock::OnGeneralCTCP(CNick& Nick, CString& sMessage) { if (it != mssCTCPReplies.end()) { sReply = m_pUser->ExpandString(it->second); bHaveReply = true; + + if (sReply.empty()) { + return true; + } } if (!bHaveReply && !m_pUser->IsUserAttached()) {