From fd84f0e985e0d3bee51ad35f72c35b29346d24bc Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Fri, 14 May 2021 09:58:49 -0400 Subject: [PATCH] Disable : in mathjs --- commands/edit-number/math.js | 1 + 1 file changed, 1 insertion(+) diff --git a/commands/edit-number/math.js b/commands/edit-number/math.js index d6440c2b..f8e797bc 100644 --- a/commands/edit-number/math.js +++ b/commands/edit-number/math.js @@ -38,6 +38,7 @@ module.exports = class MathCommand extends Command { run(msg, { expression }) { try { + if (expression.includes(':')) return msg.reply('Invalid expression.'); const evaluated = limitedEvaluate(expression); if (typeof evaluated === 'function') return msg.reply('Invalid expression.'); return msg.reply(evaluated.toString());