mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-28 22:12:07 -08:00
use server.name and server.nameString, name for checking and getting nice comparison, nameString for reply outputs
This commit is contained in:
parent
7b13858f8c
commit
2a519c8061
5 changed files with 46 additions and 44 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue