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.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_knock.cpp b/src/modules/m_knock.cpp
index 972457ba2..876c4f121 100644
--- a/src/modules/m_knock.cpp
+++ b/src/modules/m_knock.cpp
@@ -102,7 +102,7 @@ class ModuleKnock : public Module
{
kn = new Knock(ServerInstance);
- if (!ServerInstance->AddMode(kn))
+ if (!ServerInstance->Modes->AddMode(kn))
throw ModuleException("Could not add new modes!");
mycommand = new CommandKnock(ServerInstance);