summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatt Schatz <genius3000@g3k.solutions>2019-10-19 20:35:55 -0600
committerP. Powell <petpow@saberuk.com>2019-10-20 20:29:05 +0100
commit890f62bd87d9d974bb806000e59d56a9c3bd9947 (patch)
tree0e9560c0796597dfa006ffaa01d3c07b94908cff /src
parent7cf9bfbcec453ea244e7f66ca5a76af99a73b7cb (diff)
Add oper exemption to hidemode.
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_hidemode.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/modules/m_hidemode.cpp b/src/modules/m_hidemode.cpp
index d5ac57115..73a789080 100644
--- a/src/modules/m_hidemode.cpp
+++ b/src/modules/m_hidemode.cpp
@@ -130,6 +130,9 @@ class ModeHook : public ClientProtocol::EventHook
if (!chan)
return MOD_RES_PASSTHRU;
+ if (user->HasPrivPermission("channels/auspex"))
+ return MOD_RES_PASSTHRU;
+
Membership* const memb = chan->GetUser(user);
if (!memb)
return MOD_RES_PASSTHRU;