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_operlog.cpp | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'src/modules/m_operlog.cpp') diff --git a/src/modules/m_operlog.cpp b/src/modules/m_operlog.cpp index 428f3160e..dabd77039 100644 --- a/src/modules/m_operlog.cpp +++ b/src/modules/m_operlog.cpp @@ -20,12 +20,21 @@ #include "inspircd.h" +#include "modules/isupport.h" -class ModuleOperLog : public Module +class ModuleOperLog + : public Module + , public ISupport::EventListener { + private: bool tosnomask; public: + ModuleOperLog() + : ISupport::EventListener(this) + { + } + void init() override { ServerInstance->SNO.EnableSnomask('r', "OPERLOG"); @@ -62,7 +71,7 @@ class ModuleOperLog : public Module return MOD_RES_PASSTHRU; } - void On005Numeric(std::map& tokens) override + void OnBuildISupport(ISupport::TokenMap& tokens) override { tokens["OPERLOG"]; } -- cgit v1.3.1-10-gc9f91