summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2020-07-20 05:51:38 +0100
committerSadie Powell <sadie@witchery.services>2020-07-20 05:52:29 +0100
commitc9ea418dd7f913ba1c2fbae49a82cf39d22e282f (patch)
tree096b7d190381a71a45a87ff6af1090183a2b59cb /src/modules
parent07b12e72497b3f0e6e53eebab032e92e1f789f0a (diff)
Show an error when an unprivileged user tries to mass-message.
Closes #1790.
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_ircv3_ctctags.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/modules/m_ircv3_ctctags.cpp b/src/modules/m_ircv3_ctctags.cpp
index 3815b025d..285657987 100644
--- a/src/modules/m_ircv3_ctctags.cpp
+++ b/src/modules/m_ircv3_ctctags.cpp
@@ -109,7 +109,10 @@ class CommandTagMsg : public Command
// If the source isn't allowed to mass message users then reject
// the attempt to mass-message users.
if (!source->HasPrivPermission("users/mass-message"))
+ {
+ source->WriteNumeric(ERR_NOPRIVILEGES, "Permission Denied - You do not have the required operator privileges");
return CMD_FAILURE;
+ }
// Extract the server glob match from the target parameter.
std::string servername(parameters[0], 1);