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, 2 insertions, 0 deletions
diff --git a/src/modules/m_noinvite.cpp b/src/modules/m_noinvite.cpp
index a276f6e35..1d970f110 100644
--- a/src/modules/m_noinvite.cpp
+++ b/src/modules/m_noinvite.cpp
@@ -53,6 +53,8 @@ class ModuleNoInvite : public Module
ni = new NoInvite(ServerInstance);
if (!ServerInstance->AddMode(ni))
throw ModuleException("Could not add new modes!");
+ Implementation eventlist[] = { I_OnUserPreInvite };
+ ServerInstance->Modules->Attach(eventlist, this, 1);
}
void Implements(char* List)