alternative message

This commit is contained in:
Hri7566 2022-06-18 00:44:10 -04:00
parent 3f79a819d3
commit 7d064a22ce
1 changed files with 6 additions and 1 deletions

View File

@ -319,7 +319,7 @@ module.exports = (cl) => {
}); });
}); });
cl.on('room_flag', (msg, admin) => { cl.on('channel_flag', (msg, admin) => {
if (!admin) return; if (!admin) return;
if (!msg.hasOwnProperty('_id') || !msg.hasOwnProperty('key') || !msg.hasOwnProperty('value')) 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) => { cl.on('clear_chat', (msg, admin) => {
if (!admin) return; if (!admin) return;
cl.channel.setChatArray([]); cl.channel.setChatArray([]);