From 454c8d374955d2ffb3ec1fca39a6efc32032c649 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Sat, 7 Apr 2018 15:07:24 +0100 Subject: Move OnStats from the core to a cross-module event. Some core code still exists in the XLine system but this will be replaced when the XLine system is replaced later. --- src/modules/m_svshold.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/modules/m_svshold.cpp') diff --git a/src/modules/m_svshold.cpp b/src/modules/m_svshold.cpp index 1ba16f3f4..481a1aaba 100644 --- a/src/modules/m_svshold.cpp +++ b/src/modules/m_svshold.cpp @@ -22,6 +22,7 @@ #include "inspircd.h" #include "xline.h" +#include "modules/stats.h" namespace { @@ -161,14 +162,16 @@ class CommandSvshold : public Command } }; -class ModuleSVSHold : public Module +class ModuleSVSHold : public Module, public Stats::EventListener { CommandSvshold cmd; SVSHoldFactory s; public: - ModuleSVSHold() : cmd(this) + ModuleSVSHold() + : Stats::EventListener(this) + , cmd(this) { } -- cgit v1.3.1-10-gc9f91