summaryrefslogtreecommitdiff
path: root/src/modules/m_banexception.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_banexception.cpp')
-rw-r--r--src/modules/m_banexception.cpp5
1 files changed, 4 insertions, 1 deletions
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
@@ -52,13 +52,16 @@ class ModuleBanException : public Module
public:
ModuleBanException() : be(this)
{
+ }
+
+ void init()
+ {
if (!ServerInstance->Modes->AddMode(&be))
throw ModuleException("Could not add new modes!");
be.DoImplements(this);
Implementation list[] = { I_OnRehash, I_On005Numeric, I_OnExtBanCheck, I_OnCheckChannelBan };
ServerInstance->Modules->Attach(list, this, 4);
-
}
void On005Numeric(std::string &output)