Sfoglia il codice sorgente

show arbitrary IP in WHOX

This extends #1650 to cover WHO as well as WHOIS
tags/v2.10.0-rc1
Shivaram Lingamneni 2 anni fa
parent
commit
dba5d3faae
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2
    1
      irc/handlers.go

+ 2
- 1
irc/handlers.go Vedi File

@@ -3265,7 +3265,8 @@ func (client *Client) rplWhoReply(channel *Channel, target *Client, rb *Response
3265 3265
 		fIP := "255.255.255.255"
3266 3266
 		if canSeeIPs || client == target {
3267 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 3271
 		params = append(params, fIP)
3271 3272
 	}

Loading…
Annulla
Salva