X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_connectban.cpp;h=01019004645b140a4d116bf21775662ab537b5f1;hb=ac7defcd3e52695dcf5e5150e9fe3e1624205e64;hp=6ba7f53a9ef68c146be466949e4f5159a9dbb157;hpb=6dd61235fc8cb67ba9919b84be42c966b7273fac;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_connectban.cpp b/src/modules/m_connectban.cpp index 6ba7f53a9..010190046 100644 --- a/src/modules/m_connectban.cpp +++ b/src/modules/m_connectban.cpp @@ -31,7 +31,8 @@ class ModuleConnectBan : public Module unsigned int ipv4_cidr; unsigned int ipv6_cidr; public: - ModuleConnectBan() { + void init() + { Implementation eventlist[] = { I_OnUserConnect, I_OnGarbageCollect, I_OnRehash }; ServerInstance->Modules->Attach(eventlist, this, 3); OnRehash(NULL);