From 4af7a1b8e5a0a69dd18c10a05de1b9f06ded2696 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Mon, 9 May 2022 17:20:17 +0200 Subject: [PATCH] Rename join to generateJoin For consistency with other functions. --- irc.go | 2 +- upstream.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) } }