From 8a13e4ebf7cb38008a87cd908d44161b216f5db9 Mon Sep 17 00:00:00 2001 From: danieldg Date: Sat, 17 Oct 2009 02:43:14 +0000 Subject: Add ModeHandler::cull() for auto-deletion, fixes call of virtual method on partially-destructed object git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11883 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/mode.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/mode.h') diff --git a/include/mode.h b/include/mode.h index a9b0da656..81858a823 100644 --- a/include/mode.h +++ b/include/mode.h @@ -172,6 +172,7 @@ class CoreExport ModeHandler : public classbase * @param type Type of the mode (MODETYPE_USER or MODETYPE_CHANNEL) */ ModeHandler(Module* me, const std::string& name, char modeletter, ParamSpec params, ModeType type); + virtual bool cull(); virtual ~ModeHandler(); /** * Returns true if the mode is a list mode -- cgit v1.2.3