From dba5d3faae2a61fd66bcb138959b64d043187f1a Mon Sep 17 00:00:00 2001 From: Shivaram Lingamneni Date: Sun, 9 Jan 2022 17:24:24 -0500 Subject: [PATCH] show arbitrary IP in WHOX This extends #1650 to cover WHO as well as WHOIS --- irc/handlers.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/irc/handlers.go b/irc/handlers.go index 35c3f514..cf51b2b0 100644 --- a/irc/handlers.go +++ b/irc/handlers.go @@ -3265,7 +3265,8 @@ 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() + ip, _ := target.getWhoisActually() + fIP = ip.String() } params = append(params, fIP) }