]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_halfop.cpp
Merge pull request #1157 from SaberUK/insp20+fix-cron-restart
[user/henk/code/inspircd.git] / src / modules / m_halfop.cpp
index f0eda3e5698fa3a86b924bc02db0cce14cf5c53a..3194fcde8ea29308798cd0e45af3fbcbbb54232c 100644 (file)
@@ -88,13 +88,11 @@ class ModuleHalfop : public Module
  public:
        ModuleHalfop() : mh(this)
        {
-               if (!ServerInstance->Modes->AddMode(&mh))
-                       throw ModuleException("Could not add new modes!");
        }
 
-       ~ModuleHalfop()
+       void init()
        {
-               ServerInstance->Modes->DelMode(&mh);
+               ServerInstance->Modules->AddService(mh);
        }
 
        Version GetVersion()