]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_delaymsg.cpp
Attach to events and register services in init()
[user/henk/code/inspircd.git] / src / modules / m_delaymsg.cpp
index 1a0734ed9b01506f3ec3d4949f5ad02602576847..63da04a63cedfb7cfe27378a93c31b787d94585c 100644 (file)
@@ -45,6 +45,10 @@ class ModuleDelayMsg : public Module
        DelayMsgMode djm;
  public:
        ModuleDelayMsg() : djm(this)
+       {
+       }
+
+       void init()
        {
                if (!ServerInstance->Modes->AddMode(&djm))
                        throw ModuleException("Could not add new modes!");