diff --git a/src/modules/misc.js b/src/modules/misc.js index 4088f3d..9229360 100644 --- a/src/modules/misc.js +++ b/src/modules/misc.js @@ -177,8 +177,10 @@ wolfram.callback = async function (msg, line, args, {verbose, v}) { string = safeString(data[1].subpods[0].plaintext); let text; - if (string.length > 2000 - (6 + safeString(query).length)) text = string; - string = "Output too long:"; + if (string.length > 2000 - (6 + safeString(query).length)) { + text = string; + string = "Output too long:"; + } return { content: `\`${safeString(query)}\` -> ${string.length > 0 ? string : ""}`,