From d354a30b43da4ff5a2a41b48d267e63849e9da21 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Sun, 12 Nov 2023 16:37:46 +0100 Subject: [PATCH] upstream: use unspecified AWAY reason if possible --- upstream.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/upstream.go b/upstream.go index 5bffe3d..ca56a82 100644 --- a/upstream.go +++ b/upstream.go @@ -2191,9 +2191,13 @@ func (uc *upstreamConn) updateAway() { return } if away { + reason := "Auto away" + if uc.caps.IsAvailable("draft/pre-away") { + reason = "*" + } uc.SendMessage(ctx, &irc.Message{ Command: "AWAY", - Params: []string{"Auto away"}, + Params: []string{reason}, }) } else { uc.SendMessage(ctx, &irc.Message{