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:
commit
c2bf59ca38
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user