aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_banexception.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2020-01-05 14:41:06 +0000
committerGravatar Sadie Powell2020-01-05 14:41:06 +0000
commitf8013e089955329bbf915c1617f668618533c266 (patch)
tree6244df0adc4dea3e2fd9af4158648d7d4bac9d03 /src/modules/m_banexception.cpp
parentMerge branch 'insp3' into master. (diff)
Move ISupport logic out of the core and into core_info.
Diffstat (limited to 'src/modules/m_banexception.cpp')
-rw-r--r--src/modules/m_banexception.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/modules/m_banexception.cpp b/src/modules/m_banexception.cpp
index 6b9bd9156..2ca96192f 100644
--- a/src/modules/m_banexception.cpp
+++ b/src/modules/m_banexception.cpp
@@ -23,6 +23,7 @@
#include "inspircd.h"
#include "listmode.h"
+#include "modules/isupport.h"
/* Written by Om<om@inspircd.org>, April 2005. */
/* Rewritten to use the listmode utility by Om, December 2005 */
@@ -46,16 +47,21 @@ class BanException : public ListModeBase
};
-class ModuleBanException : public Module
+class ModuleBanException
+ : public Module
+ , public ISupport::EventListener
{
+ private:
BanException be;
public:
- ModuleBanException() : be(this)
+ ModuleBanException()
+ : ISupport::EventListener(this)
+ , be(this)
{
}
- void On005Numeric(std::map<std::string, std::string>& tokens) override
+ void OnBuildISupport(ISupport::TokenMap& tokens) override
{
tokens["EXCEPTS"] = ConvToStr(be.GetModeChar());
}