forked from External/ergo
generalize server name/listen.
This commit is contained in:
parent
96cb8240e6
commit
4cee1ef909
5 changed files with 16 additions and 6 deletions
|
|
@ -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())
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue