diff options
author | Peter Powell <petpow@saberuk.com> | 2019-07-31 22:15:13 +0100 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2019-07-31 22:15:13 +0100 |
commit | 9acece70e533fc45d5401e331af25a5e99dab660 (patch) | |
tree | e15dfaeac60054dbebbbf3931e691e2233edefd8 /src | |
parent | 7d17f0f275b4cb9971a9f2ce1a641d4c6f060096 (diff) |
Fix sending DEL for caps which have not been advertised yet.
Closes #1687.
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_ircv3_capnotify.cpp | 4 |
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)) { |