downstream: reflect AWAY status in self-WHO reply without upstream

This commit is contained in:
Simon Ser 2024-07-08 08:28:50 +02:00
parent 4682bbef66
commit a3716dc2d2

View file

@ -2153,8 +2153,10 @@ func (dc *downstreamConn) handleMessageRegistered(ctx context.Context, msg *irc.
// TODO: support mixed bouncer/upstream WHO queries
maskCM := dc.casemap(mask)
if dc.network == nil && maskCM == dc.nickCM {
// TODO: support AWAY (H/G) in self WHO reply
flags := "H"
if dc.away != nil {
flags = "G"
}
if dc.user.Admin {
flags += "*"
}