mirror of
https://github.com/jeremyd/ergo.git
synced 2026-07-31 03:03:05 -07:00
fix #1650
RPL_WHOISACTUALLY should display some arbitrarily chosen IP address and hostname.
This commit is contained in:
+1
-5
@@ -613,11 +613,7 @@ func (client *Client) getIPNoMutex() net.IP {
|
||||
|
||||
// IPString returns the IP address of this client as a string.
|
||||
func (client *Client) IPString() string {
|
||||
ip := client.IP().String()
|
||||
if 0 < len(ip) && ip[0] == ':' {
|
||||
ip = "0" + ip
|
||||
}
|
||||
return ip
|
||||
return utils.IPStringToHostname(client.IP().String())
|
||||
}
|
||||
|
||||
// t returns the translated version of the given string, based on the languages configured by the client.
|
||||
|
||||
Reference in New Issue
Block a user