Rename join to generateJoin

For consistency with other functions.
This commit is contained in:
Simon Ser 2022-05-09 17:20:17 +02:00
parent c50fb4a26d
commit 4af7a1b8e5
2 changed files with 2 additions and 2 deletions

2
irc.go
View File

@ -300,7 +300,7 @@ type batch struct {
Label string Label string
} }
func join(channels, keys []string) []*irc.Message { func generateJoin(channels, keys []string) []*irc.Message {
// Put channels with a key first // Put channels with a key first
js := joinSorter{channels, keys} js := joinSorter{channels, keys}
sort.Sort(&js) sort.Sort(&js)

View File

@ -773,7 +773,7 @@ func (uc *upstreamConn) handleMessage(ctx context.Context, msg *irc.Message) err
keys = append(keys, ch.Key) keys = append(keys, ch.Key)
} }
for _, msg := range join(channels, keys) { for _, msg := range generateJoin(channels, keys) {
uc.SendMessage(ctx, msg) uc.SendMessage(ctx, msg)
} }
} }