forked from External/ergo
Merge pull request #1897 from slingamn/whox_show_ip
show arbitrary IP in WHOX
This commit is contained in:
commit
c2bf59ca38
1 changed files with 2 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue