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":
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 {