Forward RPL_AWAY messages
This commit is contained in:
parent
6899e748c6
commit
976ae2e649
13
upstream.go
13
upstream.go
@ -1133,6 +1133,19 @@ func (uc *upstreamConn) handleMessage(msg *irc.Message) error {
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
case irc.RPL_AWAY:
|
||||||
|
var nick, reason string
|
||||||
|
if err := parseMessageParams(msg, nil, &nick, &reason); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
uc.forEachDownstreamByID(downstreamID, func(dc *downstreamConn) {
|
||||||
|
dc.SendMessage(&irc.Message{
|
||||||
|
Prefix: dc.srv.prefix(),
|
||||||
|
Command: irc.RPL_AWAY,
|
||||||
|
Params: []string{dc.nick, dc.marshalEntity(uc.network, nick), reason},
|
||||||
|
})
|
||||||
|
})
|
||||||
case "TAGMSG":
|
case "TAGMSG":
|
||||||
// TODO: relay to downstream connections that accept message-tags
|
// TODO: relay to downstream connections that accept message-tags
|
||||||
case "ACK":
|
case "ACK":
|
||||||
|
Loading…
Reference in New Issue
Block a user