]> jfr.im git - irc/evilnet/znc.git/commitdiff
Always try to delete an uppercase CTCP response in DelCtcpReply
authorJos Ahrens <redacted>
Mon, 31 Aug 2015 08:38:35 +0000 (10:38 +0200)
committerJ-P Nurmi <redacted>
Tue, 1 Sep 2015 19:37:14 +0000 (21:37 +0200)
AddCtcpReply always adds an CTCP response in uppercase, it is only fair we do the same in DelCtcpReply

src/User.cpp

index 8f295eb4c6aa2be7c1ffabc622e9f902506ab627..64821d0b94c3cf49e6c7db9ac76343ac207b3793 100644 (file)
@@ -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) {