]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_delayjoin.cpp
Attach to events and register services in init()
[user/henk/code/inspircd.git] / src / modules / m_delayjoin.cpp
index 34d782c7718eeb7ed243b812e3ad6223a79a7c84..98d50455a4fe0d9bae4299ac1a6c7289c6f8f0ba 100644 (file)
@@ -44,6 +44,10 @@ class ModuleDelayJoin : public Module
  public:
        LocalIntExt unjoined;
        ModuleDelayJoin() : djm(this), unjoined("delayjoin", this)
+       {
+       }
+
+       void init()
        {
                if (!ServerInstance->Modes->AddMode(&djm))
                        throw ModuleException("Could not add new modes!");