From 9db7af579c46a9f0379fdf71fb773a0a76a94846 Mon Sep 17 00:00:00 2001 From: danieldg Date: Sat, 17 Oct 2009 18:52:39 +0000 Subject: Make classbase and refcountbase uncopyable; expand comments on their indended uses git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11888 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/mode.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/mode.cpp') 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; + } } -- cgit v1.3.1-10-gc9f91