Add mass_notice oper priv, enabled by default for compatibility.

Controls /wallops and masked notices/privmsgs.
This commit is contained in:
Jilles Tjoelker 2007-12-24 21:47:05 +01:00
parent 3fec9477b8
commit a6f4368b96
7 changed files with 22 additions and 3 deletions

View 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,