From e7c31868d1787071a063c31eae0a8de5389a9419 Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 2 Sep 2006 16:53:01 +0000 Subject: Because these modes take no parameter when being removed, they need no special code for ModeHandler::RemoveMode() git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5111 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_messageflood.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/modules/m_messageflood.cpp') diff --git a/src/modules/m_messageflood.cpp b/src/modules/m_messageflood.cpp index 3eccb868d..7deb77a69 100644 --- a/src/modules/m_messageflood.cpp +++ b/src/modules/m_messageflood.cpp @@ -264,12 +264,13 @@ class ModuleMsgFlood : public Module virtual ~ModuleMsgFlood() { + ServerInstance->Modes->DelMode(mf); DELETE(mf); } virtual Version GetVersion() { - return Version(1,0,0,0,VF_STATIC|VF_VENDOR); + return Version(1, 0, 0, 0, VF_COMMON | VF_VENDOR); } }; -- cgit v1.2.3