From ac7defcd3e52695dcf5e5150e9fe3e1624205e64 Mon Sep 17 00:00:00 2001 From: attilamolnar Date: Sat, 13 Oct 2012 03:12:29 +0200 Subject: Attach to events and register services in init() --- src/modules/m_connectban.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/modules/m_connectban.cpp') 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); -- cgit v1.2.3