]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_nokicks.cpp
Attach to events and register services in init()
[user/henk/code/inspircd.git] / src / modules / m_nokicks.cpp
index 0d380facdd532f775e3fb73826ca953c0c197f60..e8bceffd432449e649da9c0858136f8f93b14810 100644 (file)
@@ -37,6 +37,10 @@ class ModuleNoKicks : public Module
  public:
        ModuleNoKicks()
                : nk(this)
+       {
+       }
+
+       void init()
        {
                if (!ServerInstance->Modes->AddMode(&nk))
                        throw ModuleException("Could not add new modes!");