summaryrefslogtreecommitdiff
path: root/src/modules/m_blockamsg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_blockamsg.cpp')
-rw-r--r--src/modules/m_blockamsg.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/modules/m_blockamsg.cpp b/src/modules/m_blockamsg.cpp
index 865626f87..b0001574a 100644
--- a/src/modules/m_blockamsg.cpp
+++ b/src/modules/m_blockamsg.cpp
@@ -57,13 +57,16 @@ class ModuleBlockAmsg : public Module
public:
ModuleBlockAmsg() : blockamsg("blockamsg", this)
{
+ }
+
+ void init()
+ {
this->OnRehash(NULL);
ServerInstance->Extensions.Register(&blockamsg);
Implementation eventlist[] = { I_OnRehash, I_OnPreCommand };
ServerInstance->Modules->Attach(eventlist, this, 2);
}
-
virtual ~ModuleBlockAmsg()
{
}