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_silence.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_silence.cpp')
| -rw-r--r-- | src/modules/m_silence.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/modules/m_silence.cpp b/src/modules/m_silence.cpp index c41eb2539..c8c14f411 100644 --- a/src/modules/m_silence.cpp +++ b/src/modules/m_silence.cpp @@ -19,6 +19,7 @@ #include "inspircd.h" #include "modules/ctctags.h" +#include "modules/isupport.h" enum { @@ -389,6 +390,7 @@ class CommandSilence : public SplitCommand class ModuleSilence : public Module , public CTCTags::EventListener + , public ISupport::EventListener { private: bool exemptuline; @@ -433,6 +435,7 @@ class ModuleSilence public: ModuleSilence() : CTCTags::EventListener(this) + , ISupport::EventListener(this) , cmd(this) { } @@ -444,7 +447,7 @@ class ModuleSilence cmd.ext.maxsilence = tag->getUInt("maxentries", 32, 1); } - void On005Numeric(std::map<std::string, std::string>& tokens) override + void OnBuildISupport(ISupport::TokenMap& tokens) override { tokens["ESILENCE"] = "CcdiNnPpTtx"; tokens["SILENCE"] = ConvToStr(cmd.ext.maxsilence); |
