Filter out server-dependent caps in CAP NEW using blacklist too
This commit is contained in:
1 parent
1c197a5508
commit
c2f299abdf
2 files changed
+15
-1
No files matched your search
+1
-1
@@ -1070,7 +1070,7 @@ void CClient::SetTagSupport(const CString& sTag, bool bState) {
|
||||
}
|
||||
|
||||
void CClient::NotifyServerDependentCap(const CString& sCap, bool bValue, const CString& sValue) {
|
||||
if (bValue) {
|
||||
if (bValue && !CZNC::Get().GetClientCapBlacklist().count(sCap)) {
|
||||
if (HasCapNotify()) {
|
||||
if (HasCap302() && !sValue.empty()) {
|
||||
PutClient(":irc.znc.in CAP " + GetNick() + " NEW :" + sCap + "=" + sValue);
|
||||
|
||||
Reference in new issue
Block a user