X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fextra%2Fm_regex_stdlib.cpp;h=204728b652601290c3b64e25e913dd8da721aea6;hb=a5d110282a864fd2e91b51ce360a977cd0643657;hp=4942e973972bb06310436c55ee42c87ce55edfca;hpb=3b63bc840f540d8bfdae37b6860083c18f99815c;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/extra/m_regex_stdlib.cpp b/src/modules/extra/m_regex_stdlib.cpp index 4942e9739..204728b65 100644 --- a/src/modules/extra/m_regex_stdlib.cpp +++ b/src/modules/extra/m_regex_stdlib.cpp @@ -76,7 +76,7 @@ public: ModuleRegexStd() : ref(this) { ServerInstance->Modules->AddService(ref); Implementation eventlist[] = { I_OnRehash }; - ServerInstance->Modules->Attach(eventlist, this, 1); + ServerInstance->Modules->Attach(eventlist, this, sizeof(eventlist)/sizeof(Implementation)); OnRehash(NULL); }