2089 - Removed mention from message

This commit is contained in:
Joan Sanchez 2020-02-07 14:04:18 +01:00
parent a82f7d7584
commit 375807dec4
1 changed files with 2 additions and 1 deletions

View File

@ -31,7 +31,7 @@ module.exports = Self => {
const recipient = to.replace('@', '');
if (sender.name != recipient)
return sendMessage(sender, to, `@${sender.name}: ${message} `);
return sendMessage(sender, to, message);
};
async function sendMessage(sender, channel, message) {
@ -42,6 +42,7 @@ module.exports = Self => {
return sendAuth(uri, {
'channel': channel,
'avatar': avatar,
'alias': sender.nickname,
'text': message
}).catch(async error => {
if (error.statusCode === 401 && !this.resendAttempted) {