ignore unknown participant bye
This commit is contained in:
parent
8bfd16a41f
commit
1af74e957d
|
@ -127,6 +127,7 @@ global.createMPPbridge = async function createMPPbridge({room, channel, uri}) {
|
||||||
});
|
});
|
||||||
gClient.prependListener("bye", async msg => {
|
gClient.prependListener("bye", async msg => {
|
||||||
var participant = gClient.ppl[msg.p];
|
var participant = gClient.ppl[msg.p];
|
||||||
|
if (!participant) return;
|
||||||
d.send(`\`${participant._id.substr(0,6)}\` ___**${sanitizeName(participant.name)}** left the room.___`);
|
d.send(`\`${participant._id.substr(0,6)}\` ___**${sanitizeName(participant.name)}** left the room.___`);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -196,4 +197,4 @@ dClient.once("ready", async function () {
|
||||||
handleError(error, JSON.stringify(bridge));
|
handleError(error, JSON.stringify(bridge));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue