X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_operprefix.cpp;h=b6e6b893b73481ee801cdb741fccb3f848b881a9;hb=dc4c8c85f383567aef9325a08515c9890bd89ab8;hp=c6c5037e9c1a4208c0b76c9a9fe1822f21f0fd8e;hpb=62149fcd86711d3ca7457a327c4e8fa2e7d85582;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_operprefix.cpp b/src/modules/m_operprefix.cpp index c6c5037e9..b6e6b893b 100644 --- a/src/modules/m_operprefix.cpp +++ b/src/modules/m_operprefix.cpp @@ -86,7 +86,7 @@ class ModuleOperPrefixMode : public Module ServerInstance->Modules->AddService(opm); Implementation eventlist[] = { I_OnUserPreJoin, I_OnPostOper, I_OnLoadModule, I_OnUnloadModule }; - ServerInstance->Modules->Attach(eventlist, this, 4); + ServerInstance->Modules->Attach(eventlist, this, sizeof(eventlist)/sizeof(Implementation)); /* To give clients a chance to learn about the new prefix we don't give +y to opers * right now. That means if the module was loaded after opers have joined channels