diff options
Diffstat (limited to 'src/modules/m_commonchans.cpp')
-rw-r--r-- | src/modules/m_commonchans.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/modules/m_commonchans.cpp b/src/modules/m_commonchans.cpp index 877ba87d7..d91ab1231 100644 --- a/src/modules/m_commonchans.cpp +++ b/src/modules/m_commonchans.cpp @@ -35,13 +35,16 @@ class ModulePrivacyMode : public Module public: ModulePrivacyMode() : pm(this) { + } + + void init() + { if (!ServerInstance->Modes->AddMode(&pm)) throw ModuleException("Could not add new modes!"); Implementation eventlist[] = { I_OnUserPreMessage, I_OnUserPreNotice }; ServerInstance->Modules->Attach(eventlist, this, 2); } - virtual ~ModulePrivacyMode() { } |