alternative message
This commit is contained in:
parent
dbc65b0430
commit
77b5752c21
|
@ -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([]);
|
||||
|
|
Loading…
Reference in New Issue