From be6555384db73ec37b7d3cb5c39510c17a275a02 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Mon, 19 Dec 2022 09:25:18 +0000 Subject: Add an oper priv for exempting opers from blockamsg. Closes #2007. --- src/modules/m_blockamsg.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/modules') diff --git a/src/modules/m_blockamsg.cpp b/src/modules/m_blockamsg.cpp index 9c9f95626..f63b6efc3 100644 --- a/src/modules/m_blockamsg.cpp +++ b/src/modules/m_blockamsg.cpp @@ -91,6 +91,9 @@ class ModuleBlockAmsg : public Module if ((validated) && (parameters.size() >= 2) && ((command == "PRIVMSG") || (command == "NOTICE"))) { + if (user->HasPrivPermission("servers/ignore-blockamsg")) + return MOD_RES_PASSTHRU; + // parameters[0] is the target list, count how many channels are there unsigned int targets = 0; // Is the first target a channel? -- cgit v1.3.1-10-gc9f91