diff options
Diffstat (limited to 'src/modules')
-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)) { |