From 9acece70e533fc45d5401e331af25a5e99dab660 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Wed, 31 Jul 2019 22:15:13 +0100 Subject: Fix sending DEL for caps which have not been advertised yet. Closes #1687. --- src/modules/m_ircv3_capnotify.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/modules/m_ircv3_capnotify.cpp b/src/modules/m_ircv3_capnotify.cpp index 6190f15a8..7546d6213 100644 --- a/src/modules/m_ircv3_capnotify.cpp +++ b/src/modules/m_ircv3_capnotify.cpp @@ -101,6 +101,10 @@ class ModuleIRCv3CapNotify : public Module, public Cap::EventListener, public Re if (!capnotify.get(user)) continue; + // Check that this user can actually see the cap. + if (!cap->OnList(user)) + continue; + // If the cap is being added and the client supports cap values then show the value, if any if ((add) && (capnotify.GetProtocol(user) != Cap::CAP_LEGACY)) { -- cgit v1.2.3