diff options
| author | 2020-01-05 14:41:06 +0000 | |
|---|---|---|
| committer | 2020-01-05 14:41:06 +0000 | |
| commit | f8013e089955329bbf915c1617f668618533c266 (patch) | |
| tree | 6244df0adc4dea3e2fd9af4158648d7d4bac9d03 /src/modules/m_remove.cpp | |
| parent | Merge branch 'insp3' into master. (diff) | |
Move ISupport logic out of the core and into core_info.
Diffstat (limited to 'src/modules/m_remove.cpp')
| -rw-r--r-- | src/modules/m_remove.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/modules/m_remove.cpp b/src/modules/m_remove.cpp index 6009b1a02..d72935666 100644 --- a/src/modules/m_remove.cpp +++ b/src/modules/m_remove.cpp @@ -23,6 +23,7 @@ #include "inspircd.h" +#include "modules/isupport.h" /* * This module supports the use of the +q and +a usermodes, but should work without them too. @@ -193,7 +194,9 @@ class CommandFpart : public RemoveBase } }; -class ModuleRemove : public Module +class ModuleRemove + : public Module + , public ISupport::EventListener { ChanModeReference nokicksmode; CommandRemove cmd1; @@ -202,13 +205,14 @@ class ModuleRemove : public Module public: ModuleRemove() - : nokicksmode(this, "nokick") + : ISupport::EventListener(this) + , nokicksmode(this, "nokick") , cmd1(this, supportnokicks, nokicksmode) , cmd2(this, supportnokicks, nokicksmode) { } - void On005Numeric(std::map<std::string, std::string>& tokens) override + void OnBuildISupport(ISupport::TokenMap& tokens) override { tokens["REMOVE"]; } |
