summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2015-12-05 15:58:48 +0100
committerAttila Molnar <attilamolnar@hush.com>2015-12-05 15:58:48 +0100
commit302053cf8f5378da7f23e5d2f68a24c9d2325351 (patch)
tree53c1268ef70d943e26bb237f9dba9c8b45519414 /src
parent912fd7a922beaeecdf602fa9d70964aee2a6bb63 (diff)
m_cap Provide the OnCapValueChange event and add Cap::Manager::NotifyValueChange()
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_cap.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/modules/m_cap.cpp b/src/modules/m_cap.cpp
index a6b5aa900..e1593e33f 100644
--- a/src/modules/m_cap.cpp
+++ b/src/modules/m_cap.cpp
@@ -122,6 +122,12 @@ class Cap::ManagerImpl : public Cap::Manager
return NULL;
}
+ void NotifyValueChange(Capability* cap) CXX11_OVERRIDE
+ {
+ ServerInstance->Logs->Log(MODNAME, LOG_DEBUG, "Cap %s changed value", cap->GetName().c_str());
+ FOREACH_MOD_CUSTOM(evprov, Cap::EventListener, OnCapValueChange, (cap));
+ }
+
Protocol GetProtocol(LocalUser* user) const
{
return ((capext.get(user) & CAP_302_BIT) ? CAP_302 : CAP_LEGACY);