diff options
| author | 2019-03-13 03:04:13 -0600 | |
|---|---|---|
| committer | 2019-03-14 00:55:18 +0000 | |
| commit | 5f2ecf00132433c875c78b475ea46c8b73bf5f57 (patch) | |
| tree | b4cc801c15f80c3297596ab1fee91eb8aaea8820 /src | |
| parent | Fix incorrect ModResult for noctcp user target. (diff) | |
Add oper privs to allow overriding noctcp.
Diffstat (limited to 'src')
| -rw-r--r-- | src/modules/m_noctcp.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/modules/m_noctcp.cpp b/src/modules/m_noctcp.cpp index 3a57dc184..13b132eb3 100644 --- a/src/modules/m_noctcp.cpp +++ b/src/modules/m_noctcp.cpp @@ -63,6 +63,9 @@ class ModuleNoCTCP : public Module if (target.type == MessageTarget::TYPE_CHANNEL) { + if (user->HasPrivPermission("channels/ignore-noctcp")) + return MOD_RES_PASSTHRU; + Channel* c = target.Get<Channel>(); ModResult res = CheckExemption::Call(exemptionprov, user, c, "noctcp"); if (res == MOD_RES_ALLOW) @@ -76,6 +79,9 @@ class ModuleNoCTCP : public Module } else if (target.type == MessageTarget::TYPE_USER) { + if (user->HasPrivPermission("users/ignore-noctcp")) + return MOD_RES_PASSTHRU; + User* u = target.Get<User>(); if (u->IsModeSet(ncu)) { |
