diff options
author | Peter Powell <petpow@saberuk.com> | 2018-04-07 15:07:24 +0100 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2018-04-08 16:54:27 +0100 |
commit | 454c8d374955d2ffb3ec1fca39a6efc32032c649 (patch) | |
tree | eba7066c77408fb909c74154bcf52df34c0911a9 /src/modules/m_hideoper.cpp | |
parent | 8c0426116cdf09e807da12b6b23d977c4a073119 (diff) |
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.
Diffstat (limited to 'src/modules/m_hideoper.cpp')
-rw-r--r-- | src/modules/m_hideoper.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/modules/m_hideoper.cpp b/src/modules/m_hideoper.cpp index 2e0b388cf..6ecfc6074 100644 --- a/src/modules/m_hideoper.cpp +++ b/src/modules/m_hideoper.cpp @@ -20,6 +20,7 @@ #include "inspircd.h" +#include "modules/stats.h" /** Handles user mode +H */ @@ -48,13 +49,14 @@ class HideOper : public SimpleUserModeHandler } }; -class ModuleHideOper : public Module, public Whois::LineEventListener +class ModuleHideOper : public Module, public Stats::EventListener, public Whois::LineEventListener { HideOper hm; bool active; public: ModuleHideOper() - : Whois::LineEventListener(this) + : Stats::EventListener(this) + , Whois::LineEventListener(this) , hm(this) , active(false) { |