diff options
| author | 2022-12-19 09:25:18 +0000 | |
|---|---|---|
| committer | 2022-12-19 09:25:18 +0000 | |
| commit | be6555384db73ec37b7d3cb5c39510c17a275a02 (patch) | |
| tree | 868221e5a9d8d57087009fa16af07a2105583ff8 /src/modules | |
| parent | Add the Cohost account to the readme. (diff) | |
Add an oper priv for exempting opers from blockamsg.
Closes #2007.
Diffstat (limited to 'src/modules')
| -rw-r--r-- | src/modules/m_blockamsg.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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? |
