Merge pull request #1897 from slingamn/whox_show_ip

show arbitrary IP in WHOX
This commit is contained in:
Shivaram Lingamneni
2022-01-19 02:16:14 -05:00
committed by GitHub

View File

@@ -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)
}