diff options
Diffstat (limited to 'src/modules/m_allowinvite.cpp')
-rw-r--r-- | src/modules/m_allowinvite.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/modules/m_allowinvite.cpp b/src/modules/m_allowinvite.cpp index a53b934a6..2bfa88823 100644 --- a/src/modules/m_allowinvite.cpp +++ b/src/modules/m_allowinvite.cpp @@ -38,8 +38,7 @@ class ModuleAllowInvite : public Module void init() { - if (!ServerInstance->Modes->AddMode(&ni)) - throw ModuleException("Could not add new modes!"); + ServerInstance->Modules->AddService(ni); Implementation eventlist[] = { I_OnUserPreInvite, I_On005Numeric }; ServerInstance->Modules->Attach(eventlist, this, sizeof(eventlist)/sizeof(Implementation)); } |