summaryrefslogtreecommitdiff
path: root/src/modules/m_nonicks.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_nonicks.cpp')
-rw-r--r--src/modules/m_nonicks.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_nonicks.cpp b/src/modules/m_nonicks.cpp
index 42e133a2c..672a48f8d 100644
--- a/src/modules/m_nonicks.cpp
+++ b/src/modules/m_nonicks.cpp
@@ -41,7 +41,7 @@ class ModuleNoNickChange : public Module
void init()
{
OnRehash(NULL);
- ServerInstance->Modes->AddMode(&nn);
+ ServerInstance->Modules->AddService(nn);
Implementation eventlist[] = { I_OnUserPreNick, I_On005Numeric, I_OnRehash };
ServerInstance->Modules->Attach(eventlist, this, sizeof(eventlist)/sizeof(Implementation));
}