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