From f8013e089955329bbf915c1617f668618533c266 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sun, 5 Jan 2020 14:41:06 +0000 Subject: Move ISupport logic out of the core and into core_info. --- src/modules/m_banexception.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'src/modules/m_banexception.cpp') 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, 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& tokens) override + void OnBuildISupport(ISupport::TokenMap& tokens) override { tokens["EXCEPTS"] = ConvToStr(be.GetModeChar()); } -- cgit v1.3.1-10-gc9f91