summaryrefslogtreecommitdiff
path: root/src/modules/m_banexception.cpp
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-10-16 15:43:53 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-10-16 15:43:53 +0000
commit7c55dfc7887b2ca91e4ebdf9f2733de8adb56e18 (patch)
tree49c0b12a63774597e950ed0168630e35966f0cfa /src/modules/m_banexception.cpp
parent04e097e20747f07cd69722535fa68a6506882d9f (diff)
Clean up crash on destruction of statics at exit
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11877 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_banexception.cpp')
-rw-r--r--src/modules/m_banexception.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/modules/m_banexception.cpp b/src/modules/m_banexception.cpp
index aac8fe776..5059fbbed 100644
--- a/src/modules/m_banexception.cpp
+++ b/src/modules/m_banexception.cpp
@@ -44,7 +44,6 @@ public:
{
if (!ServerInstance->Modes->AddMode(&be))
throw ModuleException("Could not add new modes!");
- ServerInstance->Modules->PublishInterface("ChannelBanList", this);
be.DoImplements(this);
Implementation list[] = { I_OnRehash, I_On005Numeric, I_OnExtBanCheck, I_OnCheckChannelBan };
@@ -123,12 +122,7 @@ public:
Version GetVersion()
{
- return Version("Provides support for the +e channel mode", VF_COMMON | VF_VENDOR, API_VERSION);
- }
-
- ~ModuleBanException()
- {
- ServerInstance->Modules->UnpublishInterface("ChannelBanList", this);
+ return Version("Provides support for the +e channel mode", VF_COMMON | VF_VENDOR);
}
};