X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_uhnames.cpp;h=2cd090f977de7b7cfbef310794ac5821ddf05080;hb=a5d110282a864fd2e91b51ce360a977cd0643657;hp=5693eb8070b8006a9907f55bfbf4af0cf256e808;hpb=388e4ff40931dda5870ddef149e54bdcc6c5a711;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_uhnames.cpp b/src/modules/m_uhnames.cpp index 5693eb807..2cd090f97 100644 --- a/src/modules/m_uhnames.cpp +++ b/src/modules/m_uhnames.cpp @@ -30,9 +30,13 @@ class ModuleUHNames : public Module GenericCap cap; ModuleUHNames() : cap(this, "userhost-in-names") + { + } + + void init() { Implementation eventlist[] = { I_OnEvent, I_OnPreCommand, I_OnNamesListItem, I_On005Numeric }; - ServerInstance->Modules->Attach(eventlist, this, 4); + ServerInstance->Modules->Attach(eventlist, this, sizeof(eventlist)/sizeof(Implementation)); } ~ModuleUHNames()