From d9de1324ec51883b4784ea3d6c0eccad91039db5 Mon Sep 17 00:00:00 2001 From: Lamp Date: Fri, 14 Dec 2018 06:01:39 +0000 Subject: [PATCH] fix event array not created yet --- src/mppbridger/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mppbridger/index.js b/src/mppbridger/index.js index 6e3de6e..71b9d3e 100755 --- a/src/mppbridger/index.js +++ b/src/mppbridger/index.js @@ -180,6 +180,8 @@ global.createMPPbridge = function createMPPbridge(room, DiscordChannelID, site = // announce join/leave/rename + gClient._events.p = gClient._events.p || []; + gClient._events.bye = gClient._events.bye || []; gClient._events.p.unshift(async participant => { if (gClient.ppl[participant.id]) { // is update let oldName = gClient.ppl[participant.id].name, newName = participant.name;