From 687531999ced9e457463b1a6de2bfcef97c6250c Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 2 Sep 2006 16:13:01 +0000 Subject: banexception, chanfilter and inviteexception should now be unloadable :) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5103 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_banexception.cpp | 3 ++- src/modules/m_chanfilter.cpp | 3 ++- src/modules/m_inviteexception.cpp | 8 +++++++- 3 files changed, 11 insertions(+), 3 deletions(-) (limited to 'src/modules') diff --git a/src/modules/m_banexception.cpp b/src/modules/m_banexception.cpp index 5f2f6f92a..9ac3d0dc7 100644 --- a/src/modules/m_banexception.cpp +++ b/src/modules/m_banexception.cpp @@ -93,11 +93,12 @@ public: virtual Version GetVersion() { - return Version(1, 0, 0, 3, VF_STATIC | VF_VENDOR); + return Version(1, 0, 0, 3, VF_COMMON | VF_VENDOR); } virtual ~ModuleBanException() { + ServerInstance->Modes->DelMode(be); DELETE(be); } }; diff --git a/src/modules/m_chanfilter.cpp b/src/modules/m_chanfilter.cpp index ed231df9c..458d1a29d 100644 --- a/src/modules/m_chanfilter.cpp +++ b/src/modules/m_chanfilter.cpp @@ -141,11 +141,12 @@ class ModuleChanFilter : public Module virtual Version GetVersion() { - return Version(1,0,0,1,VF_STATIC|VF_VENDOR); + return Version(1, 0, 0, 1, VF_COMMON | VF_VENDOR); } virtual ~ModuleChanFilter() { + ServerInstance->Modes->DelMode(cf); DELETE(cf); } }; diff --git a/src/modules/m_inviteexception.cpp b/src/modules/m_inviteexception.cpp index 234f7bfbc..c7cfa739e 100644 --- a/src/modules/m_inviteexception.cpp +++ b/src/modules/m_inviteexception.cpp @@ -95,7 +95,13 @@ public: virtual Version GetVersion() { - return Version(1, 0, 0, 3, VF_VENDOR | VF_STATIC); + return Version(1, 0, 0, 3, VF_VENDOR | VF_COMMON); + } + + ~ModuleInviteException() + { + ServerInstance->Modes->DelMode(ie); + DELETE(ie); } }; -- cgit v1.2.3