X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_filter.cpp;h=86ef0d4f655ada4cbb670349450b4fba0af4a8de;hb=1dfead3b2cc9e8c603f6ad6f7216576a2ce361fb;hp=eb9f17b75b33a216e6985d5f9970add279afd6f9;hpb=84a1569cd60daa64b1ae52a1fff62c0dc4d78850;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_filter.cpp b/src/modules/m_filter.cpp index eb9f17b75..86ef0d4f6 100644 --- a/src/modules/m_filter.cpp +++ b/src/modules/m_filter.cpp @@ -298,7 +298,7 @@ ModuleFilter::ModuleFilter() : filtcommand(this), RegexEngine(this, "regex") void ModuleFilter::init() { - ServerInstance->AddCommand(&filtcommand); + ServerInstance->Modules->AddService(filtcommand); Implementation eventlist[] = { I_OnPreCommand, I_OnStats, I_OnSyncNetwork, I_OnDecodeMetaData, I_OnUserPreMessage, I_OnUserPreNotice, I_OnRehash }; ServerInstance->Modules->Attach(eventlist, this, sizeof(eventlist)/sizeof(Implementation)); OnRehash(NULL);