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