]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - modules/m_wallops.c
monitor.{c,h} stuff for libratbox3.
[irc/rqf/shadowircd.git] / modules / m_wallops.c
index 82a29657f25ad699e5afcad20eaf82632c1221ac..ccd25e91a21c89776963c5f06162a8a0a8b04e6e 100644 (file)
@@ -104,6 +104,13 @@ ms_wallops(struct Client *client_p, struct Client *source_p, int parc, const cha
 {
        const char *prefix = "";
 
+       if (MyClient(source_p) && !IsOperMassNotice(source_p))
+       {
+               sendto_one(source_p, form_str(ERR_NOPRIVS),
+                          me.name, source_p->name, "mass_notice");
+               return 0;
+       }
+
        if (IsPerson(source_p))
        {
                if (!strncmp(parv[1], "OPERWALL - ", 11) ||