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/extra/m_geoip.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/modules/extra/m_geoip.cpp') diff --git a/src/modules/extra/m_geoip.cpp b/src/modules/extra/m_geoip.cpp index 35efc8d70..b6b0c3fa1 100644 --- a/src/modules/extra/m_geoip.cpp +++ b/src/modules/extra/m_geoip.cpp @@ -27,6 +27,7 @@ #include "inspircd.h" #include "xline.h" +#include "modules/stats.h" // Fix warnings about the use of commas at end of enumerator lists on C++03. #if defined __clang__ @@ -47,7 +48,7 @@ enum RPL_WHOISCOUNTRY = 344 }; -class ModuleGeoIP : public Module, public Whois::EventListener +class ModuleGeoIP : public Module, public Stats::EventListener, public Whois::EventListener { StringExtItem ext; bool extban; @@ -65,7 +66,8 @@ class ModuleGeoIP : public Module, public Whois::EventListener public: ModuleGeoIP() - : Whois::EventListener(this) + : Stats::EventListener(this) + , Whois::EventListener(this) , ext("geoip_cc", ExtensionItem::EXT_USER, this) , extban(true) , gi(NULL) -- cgit v1.3.1-10-gc9f91