#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"
sendto_wallops_flags(UMODE_OPERWALL, source_p, "OPERWALL - %s", parv[1]);
sendto_server(client_p, NULL, CAP_TS6, NOCAPS, ":%s OPERWALL :%s",
use_id(source_p), parv[1]);
- sendto_server(client_p, NULL, NOCAPS, CAP_TS6, ":%s OPERWALL :%s",
- source_p->name, parv[1]);
return 0;
}
/*
* ms_operwall - OPERWALL message handler
* (write to *all* local opers currently online)
- * parv[0] = sender prefix
* parv[1] = message text
*/
static int
{
sendto_server(client_p, NULL, CAP_TS6, NOCAPS, ":%s OPERWALL :%s",
use_id(source_p), parv[1]);
- sendto_server(client_p, NULL, NOCAPS, CAP_TS6, ":%s OPERWALL :%s",
- source_p->name, parv[1]);
sendto_wallops_flags(UMODE_OPERWALL, source_p, "OPERWALL - %s", parv[1]);
return 0;
{
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) ||
sendto_server(client_p, NULL, CAP_TS6, NOCAPS, ":%s WALLOPS :%s",
use_id(source_p), parv[1]);
- sendto_server(client_p, NULL, NOCAPS, CAP_TS6, ":%s WALLOPS :%s",
- source_p->name, parv[1]);
return 0;
}