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

Fixes #105
This commit is contained in:
Kyle Fuller
2012-01-17 21:40:14 +00:00
parent 937998d4a5
commit f5dbe86543

View File

@@ -793,6 +793,10 @@ bool CIRCSock::OnGeneralCTCP(CNick& Nick, CString& sMessage) {
if (it != mssCTCPReplies.end()) {
sReply = m_pNetwork->ExpandString(it->second);
bHaveReply = true;
if (sReply.empty()) {
return true;
}
}
if (!bHaveReply && !m_pNetwork->IsUserAttached()) {