From a3716dc2d27cec0bdd73d4a32b86e809c45fd9ba Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Mon, 8 Jul 2024 08:28:50 +0200 Subject: [PATCH] downstream: reflect AWAY status in self-WHO reply without upstream --- downstream.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/downstream.go b/downstream.go index 96fe120..787de62 100644 --- a/downstream.go +++ b/downstream.go @@ -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 += "*" }