Skip to content

Commit

Permalink
Always try to delete an uppercase CTCP response in DelCtcpReply
Browse files Browse the repository at this point in the history
AddCtcpReply always adds an CTCP response in uppercase, it is only fair we do the same in DelCtcpReply
  • Loading branch information
Zarthus authored and jpnurmi committed Sep 1, 2015
1 parent d2c462a commit 0b32da4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/User.cpp
Expand Up @@ -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) {
Expand Down

0 comments on commit 0b32da4

Please sign in to comment.