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_banexception.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/modules/m_banexception.cpp') diff --git a/src/modules/m_banexception.cpp b/src/modules/m_banexception.cpp index 14908fafc..afa198e04 100644 --- a/src/modules/m_banexception.cpp +++ b/src/modules/m_banexception.cpp @@ -51,6 +51,10 @@ class ModuleBanException : public Module public: ModuleBanException() : be(this) + { + } + + void init() { if (!ServerInstance->Modes->AddMode(&be)) throw ModuleException("Could not add new modes!"); @@ -58,7 +62,6 @@ public: be.DoImplements(this); Implementation list[] = { I_OnRehash, I_On005Numeric, I_OnExtBanCheck, I_OnCheckChannelBan }; ServerInstance->Modules->Attach(list, this, 4); - } void On005Numeric(std::string &output) -- cgit v1.3.1-10-gc9f91