aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_servprotect.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2021-07-05 16:43:33 +0100
committerGravatar Sadie Powell2021-07-05 16:50:14 +0100
commit38351efa8d3f17ad9a46f332783fbe0fd663f0cf (patch)
treea1cc47e8a72d5c247d6aeb61a0f433c14efb13a7 /src/modules/m_servprotect.cpp
parentDon't send oper swhois to users with hideoper enabled. (diff)
Deduplicate all whois numerics to the whois module header.
Diffstat (limited to 'src/modules/m_servprotect.cpp')
-rw-r--r--src/modules/m_servprotect.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_servprotect.cpp b/src/modules/m_servprotect.cpp
index 98b5983f6..ad7d924b4 100644
--- a/src/modules/m_servprotect.cpp
+++ b/src/modules/m_servprotect.cpp
@@ -129,7 +129,7 @@ class ModuleServProtectMode CXX11_FINAL
ModResult OnWhoisLine(Whois::Context& whois, Numeric::Numeric& numeric) CXX11_OVERRIDE
{
- return ((numeric.GetNumeric() == 319) && whois.GetTarget()->IsModeSet(bm)) ? MOD_RES_DENY : MOD_RES_PASSTHRU;
+ return ((numeric.GetNumeric() == RPL_WHOISCHANNELS) && whois.GetTarget()->IsModeSet(bm)) ? MOD_RES_DENY : MOD_RES_PASSTHRU;
}
};