Browse Source

show arbitrary IP in WHOX

This extends #1650 to cover WHO as well as WHOIS
tags/v2.10.0-rc1
Shivaram Lingamneni 2 years ago
parent
commit
dba5d3faae
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      irc/handlers.go

+ 2
- 1
irc/handlers.go View File

3265
 		fIP := "255.255.255.255"
3265
 		fIP := "255.255.255.255"
3266
 		if canSeeIPs || client == target {
3266
 		if canSeeIPs || client == target {
3267
 			// you can only see a target's IP if they're you or you're an oper
3267
 			// you can only see a target's IP if they're you or you're an oper
3268
-			fIP = target.IPString()
3268
+			ip, _ := target.getWhoisActually()
3269
+			fIP = ip.String()
3269
 		}
3270
 		}
3270
 		params = append(params, fIP)
3271
 		params = append(params, fIP)
3271
 	}
3272
 	}

Loading…
Cancel
Save