diff options
Diffstat (limited to 'src/mode.cpp')
-rw-r--r-- | src/mode.cpp | 3 |
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() |