X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_namesx.cpp;h=82d311773c2b52ba0d7ce14b50140e65efe868dd;hb=a5d110282a864fd2e91b51ce360a977cd0643657;hp=e2b3efce391ed83ef13105ff432ea6242481ba68;hpb=cbb06a27e9d06eadf3acf4c31be2b277ce0bc0be;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_namesx.cpp b/src/modules/m_namesx.cpp index e2b3efce3..82d311773 100644 --- a/src/modules/m_namesx.cpp +++ b/src/modules/m_namesx.cpp @@ -30,9 +30,13 @@ class ModuleNamesX : public Module public: GenericCap cap; ModuleNamesX() : cap(this, "multi-prefix") + { + } + + void init() { Implementation eventlist[] = { I_OnPreCommand, I_OnNamesListItem, I_On005Numeric, I_OnEvent, I_OnSendWhoLine }; - ServerInstance->Modules->Attach(eventlist, this, 5); + ServerInstance->Modules->Attach(eventlist, this, sizeof(eventlist)/sizeof(Implementation)); }