From fd6d5dec2b00ab15cbb81e0ceca3e6eb0a0a7094 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Bersier?= Date: Thu, 9 May 2019 21:29:35 +0200 Subject: [PATCH] fixed missing : --- commands/general/say.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/general/say.js b/commands/general/say.js index 9f6ed111..599a1635 100644 --- a/commands/general/say.js +++ b/commands/general/say.js @@ -31,7 +31,7 @@ class SayCommand extends Command { let attach = ''; - if (text.includes('[attach')) { + if (text.includes('[attach:')) { attach = text.split(/(\[attach:.*?])/); for (let i = 0, l = attach.length; i < l; i++) { if (attach[i].includes('[attach:')) { @@ -39,7 +39,7 @@ class SayCommand extends Command { i = attach.length; } } - text = text.replace(/(\[attach:.*?])/, '') + text = text.replace(/(\[attach:.*?])/, ''); } // THIS SECTION IS VERY VERY BAD MUST CHANGE