]> 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 7a43f024169f8cc95805bd33362c046ac62affd1..3194fcde8ea29308798cd0e45af3fbcbbb54232c 100644 (file)
@@ -88,8 +88,11 @@ class ModuleHalfop : public Module
  public:
        ModuleHalfop() : mh(this)
        {
-               if (!ServerInstance->Modes->AddMode(&mh))
-                       throw ModuleException("Could not add new modes!");
+       }
+
+       void init()
+       {
+               ServerInstance->Modules->AddService(mh);
        }
 
        Version GetVersion()