This commit is contained in:
Lamp 2022-01-03 21:28:35 -08:00
parent f145354bec
commit aba50ff519
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ global.createMPPbridge = async function createMPPbridge({room, channel, uri}) {
let username = gClient.channel && gClient.channel._id || room; let username = gClient.channel && gClient.channel._id || room;
if (username.length > 80) username = username.substr(0,79) + '…'; if (username.length > 80) username = username.substr(0,79) + '…';
webhook.send(options).catch(error => { webhook.send(Object.assign(options, {username})).catch(error => {
handleError(error, `webhook fail in ${channel.id}`); handleError(error, `webhook fail in ${channel.id}`);
channel.send(options).catch(error => handleError(error, `send fail in ${channel.id} after webhook send fail`)); channel.send(options).catch(error => handleError(error, `send fail in ${channel.id} after webhook send fail`));
}); });