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());