From 5f2ecf00132433c875c78b475ea46c8b73bf5f57 Mon Sep 17 00:00:00 2001 From: Matt Schatz Date: Wed, 13 Mar 2019 03:04:13 -0600 Subject: Add oper privs to allow overriding noctcp. --- src/modules/m_noctcp.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') 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(); 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(); if (u->IsModeSet(ncu)) { -- cgit v1.2.3