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_nonicks.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_nonicks.cpp')
| -rw-r--r-- | src/modules/m_nonicks.cpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/modules/m_nonicks.cpp b/src/modules/m_nonicks.cpp index f0efd771a..eacdf4ec4 100644 --- a/src/modules/m_nonicks.cpp +++ b/src/modules/m_nonicks.cpp @@ -21,14 +21,20 @@ #include "inspircd.h" #include "modules/exemption.h" +#include "modules/isupport.h" -class ModuleNoNickChange : public Module +class ModuleNoNickChange + : public Module + , public ISupport::EventListener { + private: CheckExemption::EventProvider exemptionprov; SimpleChannelModeHandler nn; + public: ModuleNoNickChange() - : exemptionprov(this) + : ISupport::EventListener(this) + , exemptionprov(this) , nn(this, "nonick", 'N') { } @@ -38,7 +44,7 @@ class ModuleNoNickChange : public Module return Version("Provides channel mode +N and extban 'N' which prevents nick changes on the channel", VF_VENDOR); } - void On005Numeric(std::map<std::string, std::string>& tokens) override + void OnBuildISupport(ISupport::TokenMap& tokens) override { tokens["EXTBAN"].push_back('N'); } |
