]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_botmode.cpp
Attach to events and register services in init()
[user/henk/code/inspircd.git] / src / modules / m_botmode.cpp
index 23094ddc55f0a4c4557aba85248513d48c87f12d..3e7fd2fc659e5e3b377a6c165745e639c4237ab3 100644 (file)
@@ -37,6 +37,10 @@ class ModuleBotMode : public Module
  public:
        ModuleBotMode()
                : bm(this)
+       {
+       }
+
+       void init()
        {
                if (!ServerInstance->Modes->AddMode(&bm))
                        throw ModuleException("Could not add new modes!");
@@ -44,7 +48,6 @@ class ModuleBotMode : public Module
                ServerInstance->Modules->Attach(eventlist, this, 1);
        }
 
-
        virtual ~ModuleBotMode()
        {
        }