From 1d10eb934af2bf62c8945eab4479f509e44651bc 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 8075c440b..41b69c576 100644 --- a/irc/handlers.go +++ b/irc/handlers.go @@ -3358,7 +3358,7 @@ func (client *Client) rplWhoReply(channel *Channel, target *Client, rb *Response if canSeeIPs || client == target { // you can only see a target's IP if they're you or you're an oper ip, _ := target.getWhoisActually() - fIP = ip.String() + fIP = utils.IPStringToHostname(ip.String()) } params = append(params, fIP) }