summaryrefslogtreecommitdiff
path: root/src/modules/m_nickflood.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_nickflood.cpp')
-rw-r--r--src/modules/m_nickflood.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/modules/m_nickflood.cpp b/src/modules/m_nickflood.cpp
index ec9d9a261..fbb090620 100644
--- a/src/modules/m_nickflood.cpp
+++ b/src/modules/m_nickflood.cpp
@@ -139,6 +139,10 @@ class ModuleNickFlood : public Module
ModuleNickFlood()
: nf(this)
{
+ }
+
+ void init()
+ {
if (!ServerInstance->Modes->AddMode(&nf))
throw ModuleException("Could not add new modes!");
ServerInstance->Extensions.Register(&nf.ext);