3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-11-15 00:19:29 +01:00

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
commit c2bf59ca38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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