aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_operlog.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2020-01-05 14:41:06 +0000
committerGravatar Sadie Powell2020-01-05 14:41:06 +0000
commitf8013e089955329bbf915c1617f668618533c266 (patch)
tree6244df0adc4dea3e2fd9af4158648d7d4bac9d03 /src/modules/m_operlog.cpp
parentMerge branch 'insp3' into master. (diff)
Move ISupport logic out of the core and into core_info.
Diffstat (limited to 'src/modules/m_operlog.cpp')
-rw-r--r--src/modules/m_operlog.cpp13
1 files changed, 11 insertions, 2 deletions
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<std::string, std::string>& tokens) override
+ void OnBuildISupport(ISupport::TokenMap& tokens) override
{
tokens["OPERLOG"];
}