1
0
Fork 0
forked from External/ergo

remove prefix from local replies; fix topic message

This commit is contained in:
Jeremy Latt 2014-02-12 18:14:19 -08:00
parent db2a21fee0
commit 52dd2521c2
6 changed files with 63 additions and 63 deletions

View file

@ -201,19 +201,18 @@ func (c *Client) ModeString() (str string) {
}
func (c *Client) UserHost() string {
nick := c.nick
if nick == "" {
nick = "*"
username := "*"
if c.HasUsername() {
username = c.username
}
username := c.username
if username == "" {
username = "*"
}
return fmt.Sprintf("%s!%s@%s", nick, username, c.hostname)
return fmt.Sprintf("%s!%s@%s", c.Nick(), username, c.hostname)
}
func (c *Client) Nick() string {
return c.nick
if c.HasNick() {
return c.nick
}
return "*"
}
func (c *Client) Id() string {