From f54beefa1b1a1fcd19f3b674e47b63a4f92eaaf5 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sun, 2 Feb 2020 15:01:23 -0500 Subject: [PATCH] Fix --- commands/search/frinkiac.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/search/frinkiac.js b/commands/search/frinkiac.js index 165646d3..2c96a5f2 100644 --- a/commands/search/frinkiac.js +++ b/commands/search/frinkiac.js @@ -39,7 +39,7 @@ module.exports = class FrinkiacCommand extends Command { const wrapped = ['']; let currentLine = 0; for (const word of caption) { - if (currentLine.length + word.length < 26) { + if (wrapped[currentLine].length + word.length < 26) { wrapped[currentLine] += ` ${word}`; } else { wrapped.push(` ${word}`);