Forward NOTICE messages coming from upstream connections

This commit is contained in:
Simon Ser 2020-03-13 16:39:49 +01:00
parent 85ffadea33
commit 2239b94399
No known key found for this signature in database
GPG Key ID: 0FDE7BE0E88F5E48

View File

@ -173,6 +173,10 @@ func (uc *upstreamConn) handleMessage(msg *irc.Message) error {
} }
case "NOTICE": case "NOTICE":
uc.logger.Print(msg) uc.logger.Print(msg)
uc.forEachDownstream(func(dc *downstreamConn) {
dc.SendMessage(msg)
})
case "CAP": case "CAP":
var subCmd string var subCmd string
if err := parseMessageParams(msg, nil, &subCmd); err != nil { if err := parseMessageParams(msg, nil, &subCmd); err != nil {