X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_timedbans.cpp;h=5023f4c01bd9a695e9c5712ac222eff9dc79a577;hb=84a1569cd60daa64b1ae52a1fff62c0dc4d78850;hp=70027473f2c91d3eaeb6d484b54ff058bf60a8f7;hpb=ac7defcd3e52695dcf5e5150e9fe3e1624205e64;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_timedbans.cpp b/src/modules/m_timedbans.cpp index 70027473f..5023f4c01 100644 --- a/src/modules/m_timedbans.cpp +++ b/src/modules/m_timedbans.cpp @@ -118,7 +118,7 @@ class ModuleTimedBans : public Module { ServerInstance->AddCommand(&cmd); Implementation eventlist[] = { I_OnDelBan, I_OnBackgroundTimer }; - ServerInstance->Modules->Attach(eventlist, this, 2); + ServerInstance->Modules->Attach(eventlist, this, sizeof(eventlist)/sizeof(Implementation)); } virtual ModResult OnDelBan(User* source, Channel* chan, const std::string &banmask)