From 40e990ed06126c1ba6164738527127d1f58fc032 Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 2 Sep 2006 16:02:35 +0000 Subject: All modules which implement simplemodes (no parameters, not a list mode) can now be UNLOADED O_o git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5102 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_botmode.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/modules/m_botmode.cpp') diff --git a/src/modules/m_botmode.cpp b/src/modules/m_botmode.cpp index 0cde92bec..2aa5047bf 100644 --- a/src/modules/m_botmode.cpp +++ b/src/modules/m_botmode.cpp @@ -81,12 +81,13 @@ class ModuleBotMode : public Module virtual ~ModuleBotMode() { + ServerInstance->Modes->DelMode(bm); DELETE(bm); } virtual Version GetVersion() { - return Version(1,0,0,0,VF_STATIC|VF_VENDOR); + return Version(1,0,0,0,VF_COMMON|VF_VENDOR); } virtual void OnWhois(userrec* src, userrec* dst) -- cgit v1.2.3