aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_customtitle.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_customtitle.cpp
parentMerge pull request #376 from SaberUK/insp20+fix-clean (diff)
downloadinspircd++-ac7defcd3e52695dcf5e5150e9fe3e1624205e64.tar.gz
inspircd++-ac7defcd3e52695dcf5e5150e9fe3e1624205e64.tar.bz2
inspircd++-ac7defcd3e52695dcf5e5150e9fe3e1624205e64.zip
Attach to events and register services in init()
Diffstat (limited to 'src/modules/m_customtitle.cpp')
-rw-r--r--src/modules/m_customtitle.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/modules/m_customtitle.cpp b/src/modules/m_customtitle.cpp
index efe4b3247..6223085f5 100644
--- a/src/modules/m_customtitle.cpp
+++ b/src/modules/m_customtitle.cpp
@@ -95,6 +95,10 @@ class ModuleCustomTitle : public Module
public:
ModuleCustomTitle() : cmd(this)
{
+ }
+
+ void init()
+ {
ServerInstance->AddCommand(&cmd);
ServerInstance->Extensions.Register(&cmd.ctitle);
ServerInstance->Modules->Attach(I_OnWhoisLine, this);