]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_operlog.cpp
Merge pull request #1094 from SISheogorath/insp20+fixed-Override
[user/henk/code/inspircd.git] / src / modules / m_operlog.cpp
index 17b9887c2dadc99348bb178a5c0570dd58f4505f..edb9109e89f246d0cde5089655c1ae7279d0c7c6 100644 (file)
@@ -28,10 +28,10 @@ class ModuleOperLog : public Module
        bool tosnomask;
 
  public:
-       ModuleOperLog()         {
-
+       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);
        }