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:
Uli Schlachter
2011-02-18 13:34:47 +01:00
parent 2ccafaf516
commit c1bb18b9e8
2 changed files with 5 additions and 0 deletions
+4
View File
@@ -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;