]> jfr.im git - solanum.git/commitdiff
m_message: global snote when massnotice is used
authorEd Kellett <redacted>
Tue, 27 Oct 2020 23:26:59 +0000 (23:26 +0000)
committerEd Kellett <redacted>
Tue, 27 Oct 2020 23:52:24 +0000 (23:52 +0000)
modules/core/m_message.c

index 694ff3caaef1c265d50c2462af48e385b15e8ca3..85bb6c5c02dd07a0554089ea5ce2374e6caccd13 100644 (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,