diff options
author | Robby <robby@chatbelgie.be> | 2019-04-02 05:11:26 +0200 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2019-04-02 10:39:18 +0100 |
commit | 15b93b6c20fff37e02e3862dff742054e652ff2a (patch) | |
tree | 4ae974a03e324ca2827380fd97922e2fe549342d /src/modules | |
parent | bdded70ac222c997aea8e8fefb029571398c611e (diff) |
m_commonchans: Replace IsOper() with HasPrivPermission() instead.
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/m_commonchans.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_commonchans.cpp b/src/modules/m_commonchans.cpp index 4cef93029..2cb318a68 100644 --- a/src/modules/m_commonchans.cpp +++ b/src/modules/m_commonchans.cpp @@ -38,7 +38,7 @@ class ModulePrivacyMode : public Module if (target.type == MessageTarget::TYPE_USER) { User* t = target.Get<User>(); - if (!user->IsOper() && (t->IsModeSet(pm)) && (!user->server->IsULine()) && !user->SharesChannelWith(t)) + if (!user->HasPrivPermission("users/ignore-commonchans") && (t->IsModeSet(pm)) && (!user->server->IsULine()) && !user->SharesChannelWith(t)) { user->WriteNumeric(ERR_CANTSENDTOUSER, t->nick, "You are not permitted to send private messages to this user (+c set)"); return MOD_RES_DENY; |