X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_nonicks.cpp;h=672a48f8d9bca45091d980ebb5290efb4f2a64ca;hb=748b3a0d89e7ecc9a766471b79fb78f63a5ca2bb;hp=9bcc01b5915b33194d83c53a4da39f8eada64b1f;hpb=ac7defcd3e52695dcf5e5150e9fe3e1624205e64;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_nonicks.cpp b/src/modules/m_nonicks.cpp index 9bcc01b59..672a48f8d 100644 --- a/src/modules/m_nonicks.cpp +++ b/src/modules/m_nonicks.cpp @@ -41,9 +41,9 @@ 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, 3); + ServerInstance->Modules->Attach(eventlist, this, sizeof(eventlist)/sizeof(Implementation)); } virtual ~ModuleNoNickChange()