aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_servprotect.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2023-02-19 18:57:40 +0000
committerGravatar Sadie Powell2023-02-19 18:59:15 +0000
commited02d73e95c39e33ff24d2f7dcdb121a4c4ba955 (patch)
tree51bcca6450c0803145062e8aa51877446f0916f3 /src/modules/m_servprotect.cpp
parentBind IP listeners with SCTP and TCP by default. (diff)
downloadinspircd++-ed02d73e95c39e33ff24d2f7dcdb121a4c4ba955.tar.gz
inspircd++-ed02d73e95c39e33ff24d2f7dcdb121a4c4ba955.tar.bz2
inspircd++-ed02d73e95c39e33ff24d2f7dcdb121a4c4ba955.zip
Remove the ability of +k to hide the channels a service is in.
This duplicates the behaviour of +I which services already use.
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)