fixed missing :

This commit is contained in:
Loïc Bersier 2019-05-09 21:29:35 +02:00
parent 72325aa98a
commit fd6d5dec2b

View file

@ -31,7 +31,7 @@ class SayCommand extends Command {
let attach = ''; let attach = '';
if (text.includes('[attach')) { if (text.includes('[attach:')) {
attach = text.split(/(\[attach:.*?])/); attach = text.split(/(\[attach:.*?])/);
for (let i = 0, l = attach.length; i < l; i++) { for (let i = 0, l = attach.length; i < l; i++) {
if (attach[i].includes('[attach:')) { if (attach[i].includes('[attach:')) {
@ -39,7 +39,7 @@ class SayCommand extends Command {
i = attach.length; i = attach.length;
} }
} }
text = text.replace(/(\[attach:.*?])/, '') text = text.replace(/(\[attach:.*?])/, '');
} }
// THIS SECTION IS VERY VERY BAD MUST CHANGE // THIS SECTION IS VERY VERY BAD MUST CHANGE