Fix mentions from !list

This commit is contained in:
Lamp 2018-05-11 23:11:03 -07:00 committed by GitHub
parent 192112d562
commit 0034b209fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -465,9 +465,9 @@ commands.list = {
var names = [];
for (let person in ppl) {
person = ppl[person];
names.push(`\`${person._id.substr(0,6)}\` ${person.name}`);
names.push(`\`${person._id.substr(0,6)}\` ${person.name.replace(/<@/g, "<\\@")}`);
}
str += names.join(', ');
message.channel.send(str, {split:{char:''}});
}
};
};