summaryrefslogtreecommitdiff
path: root/src/modules/m_noinvite.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_noinvite.cpp')
-rw-r--r--src/modules/m_noinvite.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_noinvite.cpp b/src/modules/m_noinvite.cpp
index e174d2446..d29942bc8 100644
--- a/src/modules/m_noinvite.cpp
+++ b/src/modules/m_noinvite.cpp
@@ -51,7 +51,7 @@ class ModuleNoInvite : public Module
ModuleNoInvite(InspIRCd* Me) : Module(Me)
{
ni = new NoInvite(ServerInstance);
- if (!ServerInstance->AddMode(ni))
+ if (!ServerInstance->Modes->AddMode(ni))
throw ModuleException("Could not add new modes!");
Implementation eventlist[] = { I_OnUserPreInvite };
ServerInstance->Modules->Attach(eventlist, this, 1);