mirror of
https://github.com/znc/znc.git
synced 2026-08-09 18:32:55 +02:00
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>
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -155,6 +155,7 @@ public:
|
||||
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; }
|
||||
|
||||
Reference in New Issue
Block a user