diff options
author | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-10-05 15:43:28 +0000 |
---|---|---|
committer | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-10-05 15:43:28 +0000 |
commit | 9336468f5bfa60318cb57db5126047147b7a21cb (patch) | |
tree | fa21c838f2c706463ed25305d351397d9d5ced47 /src/modules/m_invisible.cpp | |
parent | 98b252507021cd63ac8e6fd92185325562eb3575 (diff) |
Run DelMode and DelModeWatcher in RemoveModule
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11799 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_invisible.cpp')
-rw-r--r-- | src/modules/m_invisible.cpp | 6 |
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(); |