diff --git a/irc.go b/irc.go index 71f1c30..5322d65 100644 --- a/irc.go +++ b/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) diff --git a/upstream.go b/upstream.go index 4b24fdd..767f245 100644 --- a/upstream.go +++ b/upstream.go @@ -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) } }