summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2017-08-11 18:53:35 +0100
committerPeter Powell <petpow@saberuk.com>2017-08-11 18:57:02 +0100
commita012cf0aa8227b4bc4ce23b8b07eede904ac1afd (patch)
tree2cab369d80f1e1ccc28758c0319bddac94f2576a
parent29454be73a7972001e8f53a200119a0af67c8ae6 (diff)
Use RPL_LUSEROP instead of the raw numeric in m_hideoper.
-rw-r--r--src/modules/m_hideoper.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_hideoper.cpp b/src/modules/m_hideoper.cpp
index 3d8f8910c..ff9e78ca2 100644
--- a/src/modules/m_hideoper.cpp
+++ b/src/modules/m_hideoper.cpp
@@ -73,7 +73,7 @@ class ModuleHideOper : public Module, public Whois::LineEventListener
ModResult OnNumeric(User* user, const Numeric::Numeric& numeric) CXX11_OVERRIDE
{
- if (numeric.GetNumeric() != 252 || active || user->HasPrivPermission("users/auspex"))
+ if (numeric.GetNumeric() != RPL_LUSEROP || active || user->HasPrivPermission("users/auspex"))
return MOD_RES_PASSTHRU;
// If there are no visible operators then we shouldn't send the numeric.
@@ -81,7 +81,7 @@ class ModuleHideOper : public Module, public Whois::LineEventListener
if (opercount)
{
active = true;
- user->WriteNumeric(252, opercount, "operator(s) online");
+ user->WriteNumeric(RPL_LUSEROP, opercount, "operator(s) online");
active = false;
}
return MOD_RES_DENY;