diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-10-18 16:53:00 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-10-18 16:53:00 +0000 |
commit | b5c1cf4e2cbb3b47134e26e63bbebc3f5d77e150 (patch) | |
tree | 6c433bf92d236783cc78fce7db2a8f093ec7e233 /src/modules/m_hideoper.cpp | |
parent | 4354774fe57e579087f6ba121f5569a8cda52d09 (diff) |
Convert a number of modules to using privs.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10676 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_hideoper.cpp')
-rw-r--r-- | src/modules/m_hideoper.cpp | 11 |
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; } }; |