fixed missing :

merge-requests/3/head
Loïc Bersier 5 years ago
parent 72325aa98a
commit fd6d5dec2b

@ -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

Loading…
Cancel
Save