From 0b32da4ccc0626e02a7bc70d3970630bb7b49a6a Mon Sep 17 00:00:00 2001 From: Jos Ahrens Date: Mon, 31 Aug 2015 10:38:35 +0200 Subject: [PATCH] Always try to delete an uppercase CTCP response in DelCtcpReply AddCtcpReply always adds an CTCP response in uppercase, it is only fair we do the same in DelCtcpReply --- src/User.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/User.cpp b/src/User.cpp index 8f295eb4..64821d0b 100644 --- a/src/User.cpp +++ b/src/User.cpp @@ -1185,7 +1185,7 @@ bool CUser::AddCTCPReply(const CString& sCTCP, const CString& sReply) { } bool CUser::DelCTCPReply(const CString& sCTCP) { - return m_mssCTCPReplies.erase(sCTCP) > 0; + return m_mssCTCPReplies.erase(sCTCP.AsUpper()) > 0; } bool CUser::SetStatusPrefix(const CString& s) {