X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_chanlog.cpp;h=6dbc0e7a860418d1154d36b00646d5bfa38040f4;hb=822f3f13f18b7e79d5740416f9417dabb9296859;hp=f2c2f6c6f2eb745d4d39eae1d2942481a47d6310;hpb=6c67546af64cec887bb716f666016eb93fde5d2b;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_chanlog.cpp b/src/modules/m_chanlog.cpp index f2c2f6c6f..6dbc0e7a8 100644 --- a/src/modules/m_chanlog.cpp +++ b/src/modules/m_chanlog.cpp @@ -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); }