summaryrefslogtreecommitdiff
path: root/src/mode.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/mode.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/mode.cpp')
-rw-r--r--src/mode.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mode.cpp b/src/mode.cpp
index 98b5fe8c4..03d0b5269 100644
--- a/src/mode.cpp
+++ b/src/mode.cpp
@@ -57,7 +57,8 @@ ModeHandler::ModeHandler(Module* Creator, const std::string& Name, char modelett
ModeHandler::~ModeHandler()
{
- ServerInstance->Modes->DelMode(this);
+ if (ServerInstance)
+ ServerInstance->Modes->DelMode(this);
}
bool ModeHandler::IsListMode()