From b14095f7ba74e28c7126923cae11940d46966678 Mon Sep 17 00:00:00 2001 From: Shivaram Lingamneni Date: Thu, 14 Jul 2022 21:53:36 -0400 Subject: [PATCH] fix #1980 Sanitize ::1 to 0::1 in WHOX output --- irc/handlers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/irc/handlers.go b/irc/handlers.go index d6488d27..cdfe4b82 100644 --- a/irc/handlers.go +++ b/irc/handlers.go @@ -3216,7 +3216,7 @@ func (client *Client) rplWhoReply(channel *Channel, target *Client, rb *Response fIP := "255.255.255.255" if canSeeIPs || client == target { // you can only see a target's IP if they're you or you're an oper - fIP = target.IPString() + fIP = utils.IPStringToHostname(target.IPString()) } params = append(params, fIP) }