aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_botmode.cpp
diff options
context:
space:
mode:
authorGravatar attilamolnar2012-10-13 03:12:29 +0200
committerGravatar attilamolnar2012-12-02 19:39:46 +0100
commitac7defcd3e52695dcf5e5150e9fe3e1624205e64 (patch)
treeda428a276376986ca64390d5cf5662083f8197c6 /src/modules/m_botmode.cpp
parentMerge pull request #376 from SaberUK/insp20+fix-clean (diff)
Attach to events and register services in init()
Diffstat (limited to 'src/modules/m_botmode.cpp')
-rw-r--r--src/modules/m_botmode.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/modules/m_botmode.cpp b/src/modules/m_botmode.cpp
index 23094ddc5..3e7fd2fc6 100644
--- a/src/modules/m_botmode.cpp
+++ b/src/modules/m_botmode.cpp
@@ -38,13 +38,16 @@ class ModuleBotMode : public Module
ModuleBotMode()
: bm(this)
{
+ }
+
+ void init()
+ {
if (!ServerInstance->Modes->AddMode(&bm))
throw ModuleException("Could not add new modes!");
Implementation eventlist[] = { I_OnWhois };
ServerInstance->Modules->Attach(eventlist, this, 1);
}
-
virtual ~ModuleBotMode()
{
}