]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_chanhistory.cpp
m_callerid Fix memory leak in CallerIDExtInfo::free()
[user/henk/code/inspircd.git] / src / modules / m_chanhistory.cpp
index 16eba953f544fb05323c2fd3f269c760497e9305..5cbc564fbd258dd86276bb6fc22e804882c9aeee 100644 (file)
@@ -119,9 +119,10 @@ class ModuleChanHistory : public Module
        void init()
        {
                ServerInstance->Modules->AddService(m);
+               ServerInstance->Modules->AddService(m.ext);
 
                Implementation eventlist[] = { I_OnPostJoin, I_OnUserMessage, I_OnRehash };
-               ServerInstance->Modules->Attach(eventlist, this, 3);
+               ServerInstance->Modules->Attach(eventlist, this, sizeof(eventlist)/sizeof(Implementation));
                OnRehash(NULL);
        }