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_operchans.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_operchans.cpp')
| -rw-r--r-- | src/modules/m_operchans.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/modules/m_operchans.cpp b/src/modules/m_operchans.cpp index 13a453515..c6cc27fc7 100644 --- a/src/modules/m_operchans.cpp +++ b/src/modules/m_operchans.cpp @@ -21,6 +21,7 @@ #include "inspircd.h" +#include "modules/isupport.h" enum { @@ -38,7 +39,9 @@ class OperChans : public SimpleChannelModeHandler } }; -class ModuleOperChans : public Module +class ModuleOperChans + : public Module + , public ISupport::EventListener { private: OperChans oc; @@ -47,7 +50,8 @@ class ModuleOperChans : public Module public: ModuleOperChans() - : oc(this) + : ISupport::EventListener(this) + , oc(this) , space(" ") , underscore("_") { @@ -87,7 +91,7 @@ class ModuleOperChans : 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('O'); } |
