From ce922135cd1c3b7d46f6431fa17294e59682820b Mon Sep 17 00:00:00 2001 From: skiesel Date: Thu, 21 Mar 2019 22:29:10 -0400 Subject: [PATCH] Fix silly sizing mistake --- plugins/tldr/tldr.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/tldr/tldr.go b/plugins/tldr/tldr.go index e1919be..731ea72 100644 --- a/plugins/tldr/tldr.go +++ b/plugins/tldr/tldr.go @@ -59,7 +59,7 @@ func (p *TLDRPlugin) message(kind bot.Kind, message msg.Message, args ...interfa bestUsers := make([][]string, nTopics) supportingDocs := p.Bot.Config().GetInt("TLDR.Support", 3) - for i := 0; i < supportingDocs; i++ { + for i := 0; i < nTopics; i++ { bestScores[i] = make([]float64, supportingDocs) bestDocs[i] = make([]string, supportingDocs) bestUsers[i] = make([]string, supportingDocs)