diff options
Diffstat (limited to 'src/mode.cpp')
-rw-r--r-- | src/mode.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/mode.cpp b/src/mode.cpp index 144ddee72..47553f238 100644 --- a/src/mode.cpp +++ b/src/mode.cpp @@ -53,10 +53,10 @@ ModeHandler::ModeHandler(Module* Creator, const std::string& Name, char modelett { } -bool ModeHandler::cull() +CullResult ModeHandler::cull() { ServerInstance->Modes->DelMode(this); - return true; + return classbase::cull(); } ModeHandler::~ModeHandler() @@ -1027,6 +1027,9 @@ ModeParser::ModeParser() ModeParser::~ModeParser() { ModeHandler* mh = ServerInstance->Modes->FindMode('h', MODETYPE_CHANNEL); - if (mh && mh->cull()) + if (mh) + { + mh->cull(); delete mh; + } } |