summaryrefslogtreecommitdiff
path: root/src/modules/m_hideoper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_hideoper.cpp')
-rw-r--r--src/modules/m_hideoper.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/modules/m_hideoper.cpp b/src/modules/m_hideoper.cpp
index ae479c902..7a2448afc 100644
--- a/src/modules/m_hideoper.cpp
+++ b/src/modules/m_hideoper.cpp
@@ -78,7 +78,16 @@ class ModuleHideOper : public Module
/* Dont display numeric 313 (RPL_WHOISOPER) if they have +H set and the
* person doing the WHOIS is not an oper
*/
- return ((!IS_OPER(user)) && (numeric == 313) && dest->IsModeSet('H'));
+ if (numeric != 313)
+ return 0;
+
+ if (!dest->IsModeSet('H'))
+ return 0;
+
+ if (user->HasPrivPermission("users/auspex"))
+ return 1;
+
+ return 0;
}
};