Merge pull request #169 from velour/TLDR

Fix silly sizing mistake
This commit is contained in:
Scott Kiesel 2019-03-21 22:32:29 -04:00 committed by GitHub
commit 2dffd13baf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ func (p *TLDRPlugin) message(kind bot.Kind, message msg.Message, args ...interfa
bestUsers := make([][]string, nTopics) bestUsers := make([][]string, nTopics)
supportingDocs := p.Bot.Config().GetInt("TLDR.Support", 3) 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) bestScores[i] = make([]float64, supportingDocs)
bestDocs[i] = make([]string, supportingDocs) bestDocs[i] = make([]string, supportingDocs)
bestUsers[i] = make([]string, supportingDocs) bestUsers[i] = make([]string, supportingDocs)