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_classban.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_classban.cpp')
| -rw-r--r-- | src/modules/m_classban.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/modules/m_classban.cpp b/src/modules/m_classban.cpp index d3887676b..1e083bc8f 100644 --- a/src/modules/m_classban.cpp +++ b/src/modules/m_classban.cpp @@ -18,10 +18,18 @@ #include "inspircd.h" +#include "modules/isupport.h" -class ModuleClassBan : public Module +class ModuleClassBan + : public Module + , public ISupport::EventListener { public: + ModuleClassBan() + : ISupport::EventListener(this) + { + } + ModResult OnCheckBan(User* user, Channel* c, const std::string& mask) override { LocalUser* localUser = IS_LOCAL(user); @@ -33,7 +41,7 @@ class ModuleClassBan : public Module return MOD_RES_PASSTHRU; } - void On005Numeric(std::map<std::string, std::string>& tokens) override + void OnBuildISupport(ISupport::TokenMap& tokens) override { tokens["EXTBAN"].push_back('n'); } |
