mirror of
https://github.com/jeremyd/ergo.git
synced 2026-07-03 15:23:37 -07:00
generalize server name/listen.
This commit is contained in:
@@ -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())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user