use server.name and server.nameString, name for checking and getting nice comparison, nameString for reply outputs

This commit is contained in:
Daniel Oaks 2016-06-19 15:43:16 +10:00
parent 7b13858f8c
commit 2a519c8061
5 changed files with 46 additions and 44 deletions

View file

@ -33,7 +33,7 @@ type Client struct {
idleTimer *time.Timer
nick Name
nickString string // cache for nick string since it's used with most numerics
nickMaskString string // cache for nickmask string since it's used with every reply
nickMaskString string // cache for nickmask string since it's used with lots of replies
quitTimer *time.Timer
realname Text
registered bool
@ -313,5 +313,5 @@ func (client *Client) Send(tags *map[string]ircmsg.TagValue, prefix string, comm
// Notice sends the client a notice from the server.
func (client *Client) Notice(text string) {
client.Send(nil, client.server.name, "NOTICE", client.nickString, text)
client.Send(nil, client.server.nameString, "NOTICE", client.nickString, text)
}