summaryrefslogtreecommitdiff
path: root/src/mode.cpp
diff options
context:
space:
mode:
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()