summaryrefslogtreecommitdiff
path: root/src/modules/m_operchans.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_operchans.cpp')
-rw-r--r--src/modules/m_operchans.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/modules/m_operchans.cpp b/src/modules/m_operchans.cpp
index 8db2a4041..6df55696e 100644
--- a/src/modules/m_operchans.cpp
+++ b/src/modules/m_operchans.cpp
@@ -40,6 +40,10 @@ class ModuleOperChans : public Module
public:
ModuleOperChans() : oc(this)
{
+ }
+
+ void init()
+ {
if (!ServerInstance->Modes->AddMode(&oc))
throw ModuleException("Could not add new modes!");
Implementation eventlist[] = { I_OnCheckBan, I_On005Numeric, I_OnUserPreJoin };