summaryrefslogtreecommitdiff
path: root/src/modules/m_deaf.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_deaf.cpp')
-rw-r--r--src/modules/m_deaf.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/modules/m_deaf.cpp b/src/modules/m_deaf.cpp
index 958abcdd4..45a53491c 100644
--- a/src/modules/m_deaf.cpp
+++ b/src/modules/m_deaf.cpp
@@ -64,6 +64,10 @@ class ModuleDeaf : public Module
ModuleDeaf()
: m1(this)
{
+ }
+
+ void init()
+ {
if (!ServerInstance->Modes->AddMode(&m1))
throw ModuleException("Could not add new modes!");
@@ -72,7 +76,6 @@ class ModuleDeaf : public Module
ServerInstance->Modules->Attach(eventlist, this, 3);
}
-
virtual void OnRehash(User* user)
{
ConfigTag* tag = ServerInstance->Config->ConfValue("deaf");