m_message: global snote when massnotice is used

This commit is contained in:
Ed Kellett 2020-10-27 23:26:59 +00:00
parent 67ab06dd8a
commit f4b4216a9f

View file

@ -957,6 +957,14 @@ handle_special(enum message_type msgtype, struct Client *client_p,
return;
}
if(MyClient(source_p))
{
sendto_realops_snomask(SNO_GENERAL, L_ALL | L_NETWIDE, "%s sent mass-%s to %s: %s",
get_oper_name(source_p),
msgtype == MESSAGE_TYPE_PRIVMSG ? "privmsg" : "notice",
nick, text);
}
sendto_match_butone(IsServer(client_p) ? client_p : NULL, source_p,
nick + 1,
(*nick == '#') ? MATCH_HOST : MATCH_SERVER,