From f4b4216a9fed79fd3d2b1a35e8ecd3c948c598a0 Mon Sep 17 00:00:00 2001 From: Ed Kellett Date: Tue, 27 Oct 2020 23:26:59 +0000 Subject: [PATCH] m_message: global snote when massnotice is used --- modules/core/m_message.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/modules/core/m_message.c b/modules/core/m_message.c index 694ff3ca..85bb6c5c 100644 --- a/modules/core/m_message.c +++ b/modules/core/m_message.c @@ -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,