diff options
Diffstat (limited to 'src/modules/m_commonchans.cpp')
-rw-r--r-- | src/modules/m_commonchans.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_commonchans.cpp b/src/modules/m_commonchans.cpp index c584fa1ac..52a010717 100644 --- a/src/modules/m_commonchans.cpp +++ b/src/modules/m_commonchans.cpp @@ -52,7 +52,7 @@ class ModulePrivacyMode : public Module ModulePrivacyMode(InspIRCd* Me) : Module(Me) { pm = new PrivacyMode(ServerInstance); - if (!ServerInstance->AddMode(pm)) + if (!ServerInstance->Modes->AddMode(pm)) throw ModuleException("Could not add new modes!"); Implementation eventlist[] = { I_OnUserPreMessage, I_OnUserPreNotice }; ServerInstance->Modules->Attach(eventlist, this, 2); |