Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add CUser::DelCTCPReply()

This function is the counterpart for CUser::AddCTCPReply(). Guess what? It
removes an entry from CUser::m_mssCTCPReplies again! It's magic!

Signed-off-by: Uli Schlachter <psychon@znc.in>
  • Loading branch information...
commit c1bb18b9e80c6f05541811064c95b8c6e2ce7526 1 parent 2ccafaf
@psychon psychon authored
Showing with 5 additions and 0 deletions.
  1. +4 −0 User.cpp
  2. +1 −0  User.h
View
4 User.cpp
@@ -1265,6 +1265,10 @@ bool CUser::AddCTCPReply(const CString& sCTCP, const CString& sReply) {
return true;
}
+bool CUser::DelCTCPReply(const CString& sCTCP) {
+ return m_mssCTCPReplies.erase(sCTCP) > 0;
+}
+
bool CUser::SetStatusPrefix(const CString& s) {
if ((!s.empty()) && (s.length() < 6) && (s.find(' ') == CString::npos)) {
m_sStatusPrefix = (s.empty()) ? "*" : s;
View
1  User.h
@@ -155,6 +155,7 @@ class CUser {
void SetIRCServer(const CString& s);
void SetQuitMsg(const CString& s);
bool AddCTCPReply(const CString& sCTCP, const CString& sReply);
+ bool DelCTCPReply(const CString& sCTCP);
bool SetBufferCount(unsigned int u, bool bForce = false);
void SetKeepBuffer(bool b);
void SetChanPrefixes(const CString& s) { m_sChanPrefixes = s; }
Please sign in to comment.
Something went wrong with that request. Please try again.