]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_allowinvite.cpp
Attach to events and register services in init()
[user/henk/code/inspircd.git] / src / modules / m_allowinvite.cpp
index 19a8640e794befcc46fa21ec463802958d798acf..7dd2efc242199a25c1989820ce3a2754f333fa7d 100644 (file)
@@ -33,6 +33,10 @@ class ModuleAllowInvite : public Module
  public:
 
        ModuleAllowInvite() : ni(this)
+       {
+       }
+
+       void init()
        {
                if (!ServerInstance->Modes->AddMode(&ni))
                        throw ModuleException("Could not add new modes!");