1
0
Fork 0
forked from External/ergo

generalize server name/listen.

This commit is contained in:
Jeremy Latt 2012-04-17 22:11:35 -07:00
parent 96cb8240e6
commit 4cee1ef909
5 changed files with 16 additions and 6 deletions

View file

@ -1,6 +1,7 @@
package irc
import (
"fmt"
"net"
"strings"
)
@ -64,3 +65,7 @@ func (c *Client) Hostname() string {
}
return addr
}
func (c *Client) UserHost() string {
return fmt.Sprintf("%s!%s@%s", c.nick, c.username, c.Hostname())
}