aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_servprotect.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_servprotect.cpp')
-rw-r--r--src/modules/m_servprotect.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/modules/m_servprotect.cpp b/src/modules/m_servprotect.cpp
index 0cfb262e6..50924d226 100644
--- a/src/modules/m_servprotect.cpp
+++ b/src/modules/m_servprotect.cpp
@@ -23,7 +23,6 @@
#include "inspircd.h"
-#include "modules/whois.h"
enum
{
@@ -56,7 +55,6 @@ public:
class ModuleServProtectMode final
: public Module
- , public Whois::LineEventListener
{
private:
ServProtectMode bm;
@@ -64,7 +62,6 @@ private:
public:
ModuleServProtectMode()
: Module(VF_VENDOR, "Adds user mode k (servprotect) which protects services pseudoclients from being kicked, being killed, or having their channel prefix modes changed.")
- , Whois::LineEventListener(this)
, bm(this)
{
}
@@ -126,11 +123,6 @@ public:
return MOD_RES_PASSTHRU;
}
-
- ModResult OnWhoisLine(Whois::Context& whois, Numeric::Numeric& numeric) override
- {
- return ((numeric.GetNumeric() == RPL_WHOISCHANNELS) && whois.GetTarget()->IsModeSet(bm)) ? MOD_RES_DENY : MOD_RES_PASSTHRU;
- }
};
MODULE_INIT(ModuleServProtectMode)