From 77b5752c21031c64f79e14da7a4f54d3d7484521 Mon Sep 17 00:00:00 2001 From: Hri7566 Date: Sat, 18 Jun 2022 00:44:10 -0400 Subject: [PATCH] alternative message --- src/Message.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Message.js b/src/Message.js index c4db196..1829809 100644 --- a/src/Message.js +++ b/src/Message.js @@ -319,7 +319,7 @@ module.exports = (cl) => { }); }); - cl.on('room_flag', (msg, admin) => { + cl.on('channel_flag', (msg, admin) => { if (!admin) return; if (!msg.hasOwnProperty('_id') || !msg.hasOwnProperty('key') || !msg.hasOwnProperty('value')) return; @@ -332,6 +332,11 @@ module.exports = (cl) => { } }); + cl.on('room_flag', (msg, admin) => { + if (!admin) return; + cl.emit('channel_flag', msg, admin); + }) + cl.on('clear_chat', (msg, admin) => { if (!admin) return; cl.channel.setChatArray([]);