summaryrefslogtreecommitdiff
path: root/src/modules/m_nicklock.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_nicklock.cpp')
-rw-r--r--src/modules/m_nicklock.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_nicklock.cpp b/src/modules/m_nicklock.cpp
index 924ab8d81..a67c1b433 100644
--- a/src/modules/m_nicklock.cpp
+++ b/src/modules/m_nicklock.cpp
@@ -153,9 +153,9 @@ class ModuleNickLock : public Module
void init()
{
- ServerInstance->AddCommand(&cmd1);
- ServerInstance->AddCommand(&cmd2);
- ServerInstance->Extensions.Register(&locked);
+ ServerInstance->Modules->AddService(cmd1);
+ ServerInstance->Modules->AddService(cmd2);
+ ServerInstance->Modules->AddService(locked);
ServerInstance->Modules->Attach(I_OnUserPreNick, this);
}