summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2019-07-31 22:15:13 +0100
committerPeter Powell <petpow@saberuk.com>2019-07-31 22:15:13 +0100
commit9acece70e533fc45d5401e331af25a5e99dab660 (patch)
treee15dfaeac60054dbebbbf3931e691e2233edefd8
parent7d17f0f275b4cb9971a9f2ce1a641d4c6f060096 (diff)
Fix sending DEL for caps which have not been advertised yet.
Closes #1687.
-rw-r--r--src/modules/m_ircv3_capnotify.cpp4
1 files changed, 4 insertions, 0 deletions
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))
{