diff options
| author | 2020-04-09 18:57:50 +0100 | |
|---|---|---|
| committer | 2020-04-11 13:54:05 +0100 | |
| commit | 1a800f7b3db23cdef7e167cd25c0f3b2a64a8e46 (patch) | |
| tree | f302e819c6707d578c2011544069a21640fab735 /src/modules/m_remove.cpp | |
| parent | Default <sslprofile:hash> to sha256 for GnuTLS and OpenSSL. (diff) | |
Improve storage of module description, flags, and link data.
Diffstat (limited to 'src/modules/m_remove.cpp')
| -rw-r--r-- | src/modules/m_remove.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
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) |
