fixed missing :
This commit is contained in:
parent
72325aa98a
commit
fd6d5dec2b
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue