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_remove.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/modules/m_remove.cpp') diff --git a/src/modules/m_remove.cpp b/src/modules/m_remove.cpp index 6009b1a02..d72935666 100644 --- a/src/modules/m_remove.cpp +++ b/src/modules/m_remove.cpp @@ -23,6 +23,7 @@ #include "inspircd.h" +#include "modules/isupport.h" /* * This module supports the use of the +q and +a usermodes, but should work without them too. @@ -193,7 +194,9 @@ class CommandFpart : public RemoveBase } }; -class ModuleRemove : public Module +class ModuleRemove + : public Module + , public ISupport::EventListener { ChanModeReference nokicksmode; CommandRemove cmd1; @@ -202,13 +205,14 @@ class ModuleRemove : public Module public: ModuleRemove() - : nokicksmode(this, "nokick") + : ISupport::EventListener(this) + , nokicksmode(this, "nokick") , cmd1(this, supportnokicks, nokicksmode) , cmd2(this, supportnokicks, nokicksmode) { } - void On005Numeric(std::map& tokens) override + void OnBuildISupport(ISupport::TokenMap& tokens) override { tokens["REMOVE"]; } -- cgit v1.3.1-10-gc9f91