]> jfr.im git - solanum.git/blobdiff - modules/m_wallops.c
Document PRIVS command in sgml.
[solanum.git] / modules / m_wallops.c
index 82a29657f25ad699e5afcad20eaf82632c1221ac..f468bff98a15d76a62ed301506d8f8631f33c448 100644 (file)
@@ -27,7 +27,7 @@
 #include "stdinc.h"
 #include "client.h"
 #include "ircd.h"
-#include "irc_string.h"
+#include "match.h"
 #include "numeric.h"
 #include "send.h"
 #include "s_user.h"
@@ -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) ||