X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_operlog.cpp;h=edb9109e89f246d0cde5089655c1ae7279d0c7c6;hb=5ca81cf89a1d7cf78a2bb078a25305c1ebab8746;hp=17b9887c2dadc99348bb178a5c0570dd58f4505f;hpb=59cafb70e66c176b837770ae4fd21aa578c80bef;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_operlog.cpp b/src/modules/m_operlog.cpp index 17b9887c2..edb9109e8 100644 --- a/src/modules/m_operlog.cpp +++ b/src/modules/m_operlog.cpp @@ -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); }