1
0
Fork 0
forked from External/ergo

move StringSet to utils package

This commit is contained in:
Shivaram Lingamneni 2020-08-04 21:46:16 -04:00
parent ddac7d94a8
commit df8be72c6f
9 changed files with 50 additions and 40 deletions

View file

@ -64,7 +64,7 @@ type Client struct {
destroyed bool
modes modes.ModeSet
hostname string
invitedTo StringSet
invitedTo utils.StringSet
isSTSOnly bool
languages []string
lastActive time.Time // last time they sent a command that wasn't PONG or similar
@ -1641,7 +1641,7 @@ func (client *Client) Invite(casefoldedChannel string) {
defer client.stateMutex.Unlock()
if client.invitedTo == nil {
client.invitedTo = make(StringSet)
client.invitedTo = make(utils.StringSet)
}
client.invitedTo.Add(casefoldedChannel)