From 29a42203b6dded37133415583301fc14aec4c1c5 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 31 Mar 2020 19:41:12 +0200 Subject: [PATCH] Avoid directly forwarding NOTICE messages This would forward tags even if downstream doesn't support those. --- upstream.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/upstream.go b/upstream.go index 9426352..9dccf7e 100644 --- a/upstream.go +++ b/upstream.go @@ -310,7 +310,10 @@ func (uc *upstreamConn) handleMessage(msg *irc.Message) error { if msg.Prefix.User == "" && msg.Prefix.Host == "" { // server message uc.forEachDownstream(func(dc *downstreamConn) { - dc.SendMessage(msg) + dc.SendMessage(&irc.Message{ + Command: "NOTICE", + Params: msg.Params, + }) }) } else { // regular user NOTICE var nick, text string