Permalink
Browse files

CTCP's with no values should not be passed to the client

Fixes #105
  • Loading branch information...
1 parent 75ae156 commit 88c96801baaedbfc3e952a7d47530956fe8bed6e @kylef kylef committed Jan 17, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 IRCSock.cpp
View
@@ -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()) {

0 comments on commit 88c9680

Please sign in to comment.