X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_operjoin.cpp;h=bd77384a604eb105d1d17fef1378f2a37c7fc2cc;hb=00cd97160ae8909ca12b8807a8114cad1f6a06b1;hp=c4b2d5599b35589c99cdfcbd503e3b08fc5f30e7;hpb=ac7defcd3e52695dcf5e5150e9fe3e1624205e64;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_operjoin.cpp b/src/modules/m_operjoin.cpp index c4b2d5599..bd77384a6 100644 --- a/src/modules/m_operjoin.cpp +++ b/src/modules/m_operjoin.cpp @@ -57,7 +57,7 @@ class ModuleOperjoin : public Module { OnRehash(NULL); Implementation eventlist[] = { I_OnPostOper, I_OnRehash }; - ServerInstance->Modules->Attach(eventlist, this, 2); + ServerInstance->Modules->Attach(eventlist, this, sizeof(eventlist)/sizeof(Implementation)); }