Rename join to generateJoin
For consistency with other functions.
This commit is contained in:
parent
c50fb4a26d
commit
4af7a1b8e5
2
irc.go
2
irc.go
@ -300,7 +300,7 @@ type batch struct {
|
||||
Label string
|
||||
}
|
||||
|
||||
func join(channels, keys []string) []*irc.Message {
|
||||
func generateJoin(channels, keys []string) []*irc.Message {
|
||||
// Put channels with a key first
|
||||
js := joinSorter{channels, keys}
|
||||
sort.Sort(&js)
|
||||
|
@ -773,7 +773,7 @@ func (uc *upstreamConn) handleMessage(ctx context.Context, msg *irc.Message) err
|
||||
keys = append(keys, ch.Key)
|
||||
}
|
||||
|
||||
for _, msg := range join(channels, keys) {
|
||||
for _, msg := range generateJoin(channels, keys) {
|
||||
uc.SendMessage(ctx, msg)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user