summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_noctcp.cpp6
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))
{