summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2015-12-05 15:42:04 +0100
committerAttila Molnar <attilamolnar@hush.com>2015-12-05 15:42:04 +0100
commit3e08629e8342cfbd17388aa14facf3a3a963233f (patch)
tree5e2ba8e5254777a4c3fd8a003689036152346f1e /src
parent53b9f55c18dd72e8495f84bacfe6683d8df81e66 (diff)
m_cap Add Capability::OnList() hook
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_cap.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/modules/m_cap.cpp b/src/modules/m_cap.cpp
index bb5a506c9..2b4055e3c 100644
--- a/src/modules/m_cap.cpp
+++ b/src/modules/m_cap.cpp
@@ -149,6 +149,9 @@ class Cap::ManagerImpl : public Cap::Manager
if (!(show_caps & cap->GetMask()))
continue;
+ if ((show_all) && (!cap->OnList(user)))
+ continue;
+
if (minus_prefix)
out.push_back('-');
out.append(cap->GetName()).push_back(' ');