From 2239b94399251e836e3eff838ae4290d16d03c47 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Fri, 13 Mar 2020 16:39:49 +0100 Subject: [PATCH] Forward NOTICE messages coming from upstream connections --- upstream.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/upstream.go b/upstream.go index 15f5fab..c7213bd 100644 --- a/upstream.go +++ b/upstream.go @@ -173,6 +173,10 @@ func (uc *upstreamConn) handleMessage(msg *irc.Message) error { } case "NOTICE": uc.logger.Print(msg) + + uc.forEachDownstream(func(dc *downstreamConn) { + dc.SendMessage(msg) + }) case "CAP": var subCmd string if err := parseMessageParams(msg, nil, &subCmd); err != nil {