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