]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - modules/m_wallops.c
dlink -> rb_dlink
[irc/rqf/shadowircd.git] / modules / m_wallops.c
index 3301d2507a94b194a849a22f61216ef920b8daa4..ccd25e91a21c89776963c5f06162a8a0a8b04e6e 100644 (file)
@@ -104,11 +104,19 @@ 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) ||
                                !strncmp(parv[1], "LOCOPS - ", 9) ||
-                               !strncmp(parv[1], "SLOCOPS - ", 10))
+                               !strncmp(parv[1], "SLOCOPS - ", 10) ||
+                               !strncmp(parv[1], "ADMINWALL - ", 12))
                        prefix = "WALLOPS - ";
        }