summaryrefslogtreecommitdiff
path: root/src/modules/m_commonchans.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_commonchans.cpp')
-rw-r--r--src/modules/m_commonchans.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/modules/m_commonchans.cpp b/src/modules/m_commonchans.cpp
index c9225e1b7..631fd2b2b 100644
--- a/src/modules/m_commonchans.cpp
+++ b/src/modules/m_commonchans.cpp
@@ -54,6 +54,8 @@ class ModulePrivacyMode : public Module
pm = new PrivacyMode(ServerInstance);
if (!ServerInstance->AddMode(pm))
throw ModuleException("Could not add new modes!");
+ Implementation eventlist[] = { I_OnUserPreMessage, I_OnUserPreNotice };
+ ServerInstance->Modules->Attach(eventlist, this, 2);
}
void Implements(char* List)