summaryrefslogtreecommitdiff
path: root/src/modules/m_rline.cpp
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2018-04-07 15:07:24 +0100
committerPeter Powell <petpow@saberuk.com>2018-04-08 16:54:27 +0100
commit454c8d374955d2ffb3ec1fca39a6efc32032c649 (patch)
treeeba7066c77408fb909c74154bcf52df34c0911a9 /src/modules/m_rline.cpp
parent8c0426116cdf09e807da12b6b23d977c4a073119 (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_rline.cpp')
-rw-r--r--src/modules/m_rline.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/modules/m_rline.cpp b/src/modules/m_rline.cpp
index 9bb1167f5..e3a84397f 100644
--- a/src/modules/m_rline.cpp
+++ b/src/modules/m_rline.cpp
@@ -22,6 +22,7 @@
#include "inspircd.h"
#include "modules/regex.h"
+#include "modules/stats.h"
#include "xline.h"
static bool ZlineOnMatch = false;
@@ -206,7 +207,7 @@ class CommandRLine : public Command
}
};
-class ModuleRLine : public Module
+class ModuleRLine : public Module, public Stats::EventListener
{
dynamic_reference<RegexFactory> rxfactory;
RLineFactory f;
@@ -217,7 +218,10 @@ class ModuleRLine : public Module
public:
ModuleRLine()
- : rxfactory(this, "regex"), f(rxfactory), r(this, f)
+ : Stats::EventListener(this)
+ , rxfactory(this, "regex")
+ , f(rxfactory)
+ , r(this, f)
, initing(true)
{
}