X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_securelist.cpp;h=6013d1fd7543400bfcadf0a4f55f1269f8b058ad;hb=ccd4c11ea1a43d079eaae9708482ef4a9148796c;hp=6501893f3a0a93e34b218e1dc3772f43002bc474;hpb=7900ad9222aa4dbb5c6e3a7f0316f380da8f894e;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_securelist.cpp b/src/modules/m_securelist.cpp index 6501893f3..6013d1fd7 100644 --- a/src/modules/m_securelist.cpp +++ b/src/modules/m_securelist.cpp @@ -29,10 +29,11 @@ class ModuleSecureList : public Module std::vector allowlist; time_t WaitTime; public: - ModuleSecureList() { + void init() + { OnRehash(NULL); Implementation eventlist[] = { I_OnRehash, I_OnPreCommand, I_On005Numeric }; - ServerInstance->Modules->Attach(eventlist, this, 3); + ServerInstance->Modules->Attach(eventlist, this, sizeof(eventlist)/sizeof(Implementation)); } virtual ~ModuleSecureList()