X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_channames.cpp;h=e78171c4af53816bfc1d7c1b6a5865ac4055e89d;hb=5a378e1b08ec69cb57f2e52899a5aa7b7424cc75;hp=559ec5314e6d324101e8b823fc3da36259a68775;hpb=ac7defcd3e52695dcf5e5150e9fe3e1624205e64;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_channames.cpp b/src/modules/m_channames.cpp index 559ec5314..e78171c4a 100644 --- a/src/modules/m_channames.cpp +++ b/src/modules/m_channames.cpp @@ -63,7 +63,7 @@ class ModuleChannelNames : public Module { ServerInstance->IsChannel = &myhandler; Implementation eventlist[] = { I_OnRehash, I_OnUserKick }; - ServerInstance->Modules->Attach(eventlist, this, 2); + ServerInstance->Modules->Attach(eventlist, this, sizeof(eventlist)/sizeof(Implementation)); OnRehash(NULL); }