]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_chanlog.cpp
Update wiki links to use HTTPS and point to the correct pages.
[user/henk/code/inspircd.git] / src / modules / m_chanlog.cpp
index f2c2f6c6f2eb745d4d39eae1d2942481a47d6310..6dbc0e7a860418d1154d36b00646d5bfa38040f4 100644 (file)
@@ -32,9 +32,10 @@ class ModuleChanLog : public Module
        ChanLogTargets logstreams;
 
  public:
-       ModuleChanLog()         {
+       void init()
+       {
                Implementation eventlist[] = { I_OnRehash, I_OnSendSnotice };
-               ServerInstance->Modules->Attach(eventlist, this, 2);
+               ServerInstance->Modules->Attach(eventlist, this, sizeof(eventlist)/sizeof(Implementation));
 
                OnRehash(NULL);
        }