]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - modules/core/m_message.c
Add mass_notice oper priv, enabled by default for compatibility.
[irc/rqf/shadowircd.git] / modules / core / m_message.c
index e6fe7ef4c7683ce78fc4d14e38808869bd1dceb9..96da9d2edb15c36e33546c29fc9a959e4e3ea309 100644 (file)
@@ -972,6 +972,13 @@ handle_special(int p_or_n, const char *command, struct Client *client_p,
                        return;
                }
 
+               if(MyClient(source_p) && !IsOperMassNotice(source_p))
+               {
+                       sendto_one(source_p, form_str(ERR_NOPRIVS),
+                                  me.name, source_p->name, "mass_notice");
+                       return;
+               }
+
                if((s = strrchr(nick, '.')) == NULL)
                {
                        sendto_one_numeric(source_p, ERR_NOTOPLEVEL,