From 1a800f7b3db23cdef7e167cd25c0f3b2a64a8e46 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Thu, 9 Apr 2020 18:57:50 +0100 Subject: Improve storage of module description, flags, and link data. --- src/modules/m_remove.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/modules/m_remove.cpp') diff --git a/src/modules/m_remove.cpp b/src/modules/m_remove.cpp index 33d908cd2..632ef75fe 100644 --- a/src/modules/m_remove.cpp +++ b/src/modules/m_remove.cpp @@ -204,6 +204,7 @@ class ModuleRemove : public Module , public ISupport::EventListener { + private: ChanModeReference nokicksmode; CommandRemove cmd1; CommandFpart cmd2; @@ -211,7 +212,8 @@ class ModuleRemove public: ModuleRemove() - : ISupport::EventListener(this) + : Module(VF_VENDOR | VF_OPTCOMMON, "Provides the REMOVE command as an alternative to KICK, it makes users appear to have left the channel") + , ISupport::EventListener(this) , nokicksmode(this, "nokick") , cmd1(this, supportnokicks, nokicksmode) , cmd2(this, supportnokicks, nokicksmode) @@ -229,11 +231,6 @@ class ModuleRemove supportnokicks = tag->getBool("supportnokicks"); cmd1.protectedrank = cmd2.protectedrank = tag->getUInt("protectedrank", 50000); } - - Version GetVersion() override - { - return Version("Provides the REMOVE command as an alternative to KICK, it makes users appear to have left the channel", VF_OPTCOMMON | VF_VENDOR); - } }; MODULE_INIT(ModuleRemove) -- cgit v1.3.1-10-gc9f91