summaryrefslogtreecommitdiff
path: root/src/modules/m_check.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_check.cpp')
-rw-r--r--src/modules/m_check.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/modules/m_check.cpp b/src/modules/m_check.cpp
index c1af8ead2..6f89f8cf4 100644
--- a/src/modules/m_check.cpp
+++ b/src/modules/m_check.cpp
@@ -250,7 +250,11 @@ class ModuleCheck : public Module
public:
ModuleCheck() : mycommand(this)
{
- ServerInstance->AddCommand(&mycommand);
+ }
+
+ void init()
+ {
+ ServerInstance->Modules->AddService(mycommand);
}
~ModuleCheck()