From ed02d73e95c39e33ff24d2f7dcdb121a4c4ba955 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sun, 19 Feb 2023 18:57:40 +0000 Subject: Remove the ability of +k to hide the channels a service is in. This duplicates the behaviour of +I which services already use. --- src/modules/m_servprotect.cpp | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src/modules/m_servprotect.cpp') 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) -- cgit v1.3.1-10-gc9f91