From 5e5003f5b6127b974259e19ffafe59e4d595f40a Mon Sep 17 00:00:00 2001 From: Shivaram Lingamneni Date: Fri, 20 Mar 2020 15:14:27 -0400 Subject: [PATCH] fix #850 --- irc/server.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/irc/server.go b/irc/server.go index e933d1fd..60e52b56 100644 --- a/irc/server.go +++ b/irc/server.go @@ -516,6 +516,9 @@ func (client *Client) getWhoisOf(target *Client, rb *ResponseBuffer) { } } rb.Add(nil, client.server.name, RPL_WHOISIDLE, cnick, tnick, strconv.FormatUint(target.IdleSeconds(), 10), strconv.FormatInt(target.SignonTime(), 10), client.t("seconds idle, signon time")) + if target.Away() { + rb.Add(nil, client.server.name, RPL_AWAY, cnick, tnick, target.AwayMessage()) + } } // rplWhoReply returns the WHO reply between one user and another channel/user.