From 7f9c5d0bb0aee8939a92c9003121c53c7a6d1057 Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 2 Sep 2006 15:50:29 +0000 Subject: Allow unloading of modules which implement modes! The default implementation of the new system will remove simplemodes so any mode handler which is just a simple mode (no params and not a list mode) does not need to add much more than one line of code and remove its VF_STATIC flag. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5100 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_operchans.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/modules') diff --git a/src/modules/m_operchans.cpp b/src/modules/m_operchans.cpp index 7f3b989aa..03444ea1a 100644 --- a/src/modules/m_operchans.cpp +++ b/src/modules/m_operchans.cpp @@ -88,12 +88,13 @@ class ModuleOperChans : public Module virtual ~ModuleOperChans() { + ServerInstance->Modes->DelMode(oc); DELETE(oc); } virtual Version GetVersion() { - return Version(1,0,0,0,VF_STATIC|VF_VENDOR); + return Version(1,0,0,0,VF_VENDOR); } }; -- cgit v1.2.3