forked from Hri7566/mpp-server-dev2
alternative message
This commit is contained in:
parent
3f79a819d3
commit
7d064a22ce
|
@ -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