summaryrefslogtreecommitdiff
path: root/src/modules/m_knock.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_knock.cpp')
-rw-r--r--src/modules/m_knock.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/modules/m_knock.cpp b/src/modules/m_knock.cpp
index 97eb0e005..ef3b617cd 100644
--- a/src/modules/m_knock.cpp
+++ b/src/modules/m_knock.cpp
@@ -95,6 +95,10 @@ class ModuleKnock : public Module
public:
ModuleKnock() : cmd(this), kn(this)
{
+ }
+
+ void init()
+ {
if (!ServerInstance->Modes->AddMode(&kn))
throw ModuleException("Could not add new modes!");
ServerInstance->AddCommand(&cmd);