]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_connectban.cpp
Attach to events and register services in init()
[user/henk/code/inspircd.git] / src / modules / m_connectban.cpp
index 6ba7f53a9ef68c146be466949e4f5159a9dbb157..01019004645b140a4d116bf21775662ab537b5f1 100644 (file)
@@ -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);