]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_messageflood.cpp
Attach to events and register services in init()
[user/henk/code/inspircd.git] / src / modules / m_messageflood.cpp
index ff92fcaa394ac22031eef651707e6c35ef1bd194..a2fdc115ef9b65bc0c35fc946b8035f4ec1da267 100644 (file)
@@ -125,6 +125,10 @@ class ModuleMsgFlood : public Module
 
        ModuleMsgFlood()
                : mf(this)
+       {
+       }
+
+       void init()
        {
                if (!ServerInstance->Modes->AddMode(&mf))
                        throw ModuleException("Could not add new modes!");