summaryrefslogtreecommitdiff
path: root/src/modules/m_invisible.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_invisible.cpp')
-rw-r--r--src/modules/m_invisible.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/modules/m_invisible.cpp b/src/modules/m_invisible.cpp
index cfccc3de7..9c4a58278 100644
--- a/src/modules/m_invisible.cpp
+++ b/src/modules/m_invisible.cpp
@@ -80,7 +80,7 @@ class InvisibleMode : public ModeHandler
class InvisibleDeOper : public ModeWatcher
{
public:
- InvisibleDeOper() : ModeWatcher('o', MODETYPE_USER)
+ InvisibleDeOper(Module* parent) : ModeWatcher(parent, 'o', MODETYPE_USER)
{
}
@@ -105,7 +105,7 @@ class ModuleInvisible : public Module
InvisibleMode qm;
InvisibleDeOper ido;
public:
- ModuleInvisible() : qm(this)
+ ModuleInvisible() : qm(this), ido(this)
{
if (!ServerInstance->Modes->AddMode(&qm))
throw ModuleException("Could not add new modes!");
@@ -123,8 +123,6 @@ class ModuleInvisible : public Module
~ModuleInvisible()
{
- ServerInstance->Modes->DelMode(&qm);
- ServerInstance->Modes->DelModeWatcher(&ido);
};
Version GetVersion();