X-Git-Url: http://www.git.cypherpunks.ru/?p=goircd.git;a=blobdiff_plain;f=client.go;h=640a58a5cae90a356944af8a1e2bc64e33340c96;hp=e90d51220fee0eca4ab9d3d64ae0eef07a730ccb;hb=bab2b1b9f6a0a2c0e0b243c16f814b5a73f74184;hpb=491e6602aa27f2266c8bc2c6d009b8cd658f440e diff --git a/client.go b/client.go index e90d512..640a58a 100644 --- a/client.go +++ b/client.go @@ -51,7 +51,7 @@ type Client struct { sync.Mutex } -func (c Client) Host() string { +func (c *Client) Host() string { addr := c.conn.RemoteAddr().String() if host, _, err := net.SplitHostPort(addr); err == nil { addr = host @@ -62,7 +62,7 @@ func (c Client) Host() string { return addr } -func (c Client) String() string { +func (c *Client) String() string { return *c.nickname + "!" + *c.username + "@" + c.Host() }