mirror of
https://github.com/znc/znc.git
synced 2026-08-09 10:23:14 +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;
|
||||
|
||||
Reference in New Issue
Block a user