]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_operlog.cpp
m_namedmodes Only show chan key to members and opers with channels/auspex
[user/henk/code/inspircd.git] / src / modules / m_operlog.cpp
index 515fbd82bd814af75f3a13b310f3bb596f874e43..edb9109e89f246d0cde5089655c1ae7279d0c7c6 100644 (file)
@@ -31,7 +31,7 @@ class ModuleOperLog : public Module
        void init()
        {
                Implementation eventlist[] = { I_OnPreCommand, I_On005Numeric, I_OnRehash };
-               ServerInstance->Modules->Attach(eventlist, this, 3);
+               ServerInstance->Modules->Attach(eventlist, this, sizeof(eventlist)/sizeof(Implementation));
                ServerInstance->SNO->EnableSnomask('r', "OPERLOG");
                OnRehash(NULL);
        }