]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_operprefix.cpp
Fix m_ssl_gnutls and perhaps some other things on Windows by recognizing WSAEWOULDBLOCK
[user/henk/code/inspircd.git] / src / modules / m_operprefix.cpp
index c6c5037e9c1a4208c0b76c9a9fe1822f21f0fd8e..b6e6b893b73481ee801cdb741fccb3f848b881a9 100644 (file)
@@ -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