aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_servprotect.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2020-04-09 18:57:50 +0100
committerGravatar Sadie Powell2020-04-11 13:54:05 +0100
commit1a800f7b3db23cdef7e167cd25c0f3b2a64a8e46 (patch)
treef302e819c6707d578c2011544069a21640fab735 /src/modules/m_servprotect.cpp
parentDefault <sslprofile:hash> to sha256 for GnuTLS and OpenSSL. (diff)
Improve storage of module description, flags, and link data.
Diffstat (limited to 'src/modules/m_servprotect.cpp')
-rw-r--r--src/modules/m_servprotect.cpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/modules/m_servprotect.cpp b/src/modules/m_servprotect.cpp
index 2c216c0d6..5c66cb15d 100644
--- a/src/modules/m_servprotect.cpp
+++ b/src/modules/m_servprotect.cpp
@@ -55,22 +55,23 @@ class ServProtectMode : public ModeHandler
}
};
-class ModuleServProtectMode : public Module, public Whois::EventListener, public Whois::LineEventListener
+class ModuleServProtectMode
+ : public Module
+ , public Whois::EventListener
+ , public Whois::LineEventListener
{
+ private:
ServProtectMode bm;
+
public:
ModuleServProtectMode()
- : Whois::EventListener(this)
+ : Module(VF_VENDOR, "Provides user mode +k to protect services from kicks, kills, and mode changes")
+ , Whois::EventListener(this)
, Whois::LineEventListener(this)
, bm(this)
{
}
- Version GetVersion() override
- {
- return Version("Provides user mode +k to protect services from kicks, kills, and mode changes", VF_VENDOR);
- }
-
void OnWhois(Whois::Context& whois) override
{
if (whois.GetTarget()->IsModeSet(bm))