diff options
| author | 2021-07-04 21:12:29 +0100 | |
|---|---|---|
| committer | 2021-07-05 16:49:21 +0100 | |
| commit | aabaca020b76c6d78b3ddb7c65e1b1d627f7276c (patch) | |
| tree | 321496474f2fe169602715fde3eaf184196583df /src/modules/m_servprotect.cpp | |
| parent | Allow hostchange to select users based on connect class. (diff) | |
Stop sending RPL_WHOISSERVICE as it conflicts with RPL_WHOISHELPOP.
Both Anope and Atheme send an oper type for services clients so
this numeric is unnecessary. In cases where genericoper is enabled
we now send "is a network service" in RPL_WHOISOPERATOR.
Diffstat (limited to 'src/modules/m_servprotect.cpp')
| -rw-r--r-- | src/modules/m_servprotect.cpp | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/src/modules/m_servprotect.cpp b/src/modules/m_servprotect.cpp index 6a0474099..98b5983f6 100644 --- a/src/modules/m_servprotect.cpp +++ b/src/modules/m_servprotect.cpp @@ -27,9 +27,6 @@ enum { - // From AustHex. - RPL_WHOISSERVICE = 310, - // From UnrealIRCd. ERR_KILLDENY = 485 }; @@ -55,13 +52,14 @@ class ServProtectMode : public ModeHandler } }; -class ModuleServProtectMode : public Module, public Whois::EventListener, public Whois::LineEventListener +class ModuleServProtectMode CXX11_FINAL + : public Module + , public Whois::LineEventListener { ServProtectMode bm; public: ModuleServProtectMode() - : Whois::EventListener(this) - , Whois::LineEventListener(this) + : Whois::LineEventListener(this) , bm(this) { } @@ -71,14 +69,6 @@ class ModuleServProtectMode : public Module, public Whois::EventListener, public return Version("Adds user mode k (servprotect) which protects services pseudoclients from being kicked, being killed, or having their channel prefix modes changed.", VF_VENDOR); } - void OnWhois(Whois::Context& whois) CXX11_OVERRIDE - { - if (whois.GetTarget()->IsModeSet(bm)) - { - whois.SendLine(RPL_WHOISSERVICE, "is a Network Service on " + ServerInstance->Config->Network); - } - } - ModResult OnRawMode(User* user, Channel* chan, ModeHandler* mh, const std::string& param, bool adding) CXX11_OVERRIDE { /* Check that the mode is not a server mode, it is being removed, the user making the change is local, there is a parameter, |
