summaryrefslogtreecommitdiff
path: root/src/modules/m_nonotice.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_nonotice.cpp')
-rw-r--r--src/modules/m_nonotice.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_nonotice.cpp b/src/modules/m_nonotice.cpp
index 803c3a4f9..11b57e09b 100644
--- a/src/modules/m_nonotice.cpp
+++ b/src/modules/m_nonotice.cpp
@@ -54,7 +54,7 @@ class ModuleNoNotice : public Module
{
nt = new NoNotice(ServerInstance);
- if (!ServerInstance->AddMode(nt))
+ if (!ServerInstance->Modes->AddMode(nt))
throw ModuleException("Could not add new modes!");
Implementation eventlist[] = { I_OnUserPreNotice };
ServerInstance->Modules->Attach(eventlist, this, 1);