From f0cc8c27bfdc5903c30f1d16ccc233f499dc5217 Mon Sep 17 00:00:00 2001 From: Clover Johnson <95094165+callmeclover@users.noreply.github.com> Date: Tue, 29 Aug 2023 16:22:45 +0000 Subject: [PATCH] fix4 --- index.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/index.js b/index.js index 33833385..bebcd495 100644 --- a/index.js +++ b/index.js @@ -114,20 +114,20 @@ io.on('connection', function (client) { */ - client.emit('broad', "
" +/* "" +/* "" + data.user.disName + " (" + data.user.genName + "): [at ]
" + striptags(md.render(striptags(data.text)), ['strong', 'i', 'em', 'code', 'a', 'div', 'sub', 'sup', 's']) + "
"); - client.to(data.room).emit('broad', "
" +/* "" + data.user.disName + " (" + data.user.genName + "): [at ]
" + striptags(md.render(striptags(data.text)), ['strong', 'i', 'em', 'code', 'a', 'div', 'sub', 'sup', 's']) + "
"); + client.emit('broad', "
" +/* "" +/* "" + data.user.disName + " (" + data.user.genName + "): [at ]
" + striptags(md.render(striptags(data.text)), ['strong', 'i', 'em', 'code', 'a', 'div', 'sub', 'sup', 's']) + "
"); + client.to(data.room).emit('broad', "
" +/* "" + data.user.disName + " (" + data.user.genName + "): [at ]
" + striptags(md.render(striptags(data.text)), ['strong', 'i', 'em', 'code', 'a', 'div', 'sub', 'sup', 's']) + "
"); client.to(data.room).emit('broadNotif', data); } else /* if (data.type == 'image') */ { - client.emit('broad', "
" +/* "" + data.user.disName + " (" + data.user.genName + "): [at ]
" + striptags(md.render(striptags(data.text)), ['strong', 'i', 'em', 'code', 'a', 'div', 'sub', 'sup', 's']) + "
"); - client.to(data.room).emit('broad', "
" +/* "" + data.user.disName + " (" + data.user.genName + "): [at ]
" + striptags(md.render(striptags(data.text)), ['strong', 'i', 'em', 'code', 'a', 'div', 'sub', 'sup', 's']) + "
"); + client.emit('broad', "
" +/* "" + data.user.disName + " (" + data.user.genName + "): [at ]
" + striptags(md.render(striptags(data.text)), ['strong', 'i', 'em', 'code', 'a', 'div', 'sub', 'sup', 's']) + "
"); + client.to(data.room).emit('broad', "
" +/* "" + data.user.disName + " (" + data.user.genName + "): [at ]
" + striptags(md.render(striptags(data.text)), ['strong', 'i', 'em', 'code', 'a', 'div', 'sub', 'sup', 's']) + "
"); client.to(data.room).emit('broadNotif', data); } /* else if (data.type == 'video') { - client.emit('broad', "
" +/* "" + data.user.disName + " (" + data.user.genName + "): [at ]
" + striptags(md.render(striptags(data.text)), ['strong', 'i', 'em', 'code', 'a', 'div', 'sub', 'sup', 's']) + "
"); - /*client.to(data.room).emit('broad', "
" +/* "" + data.user.disName + " (" + data.user.genName + "): [at ]
" + striptags(md.render(striptags(data.text)), ['strong', 'i', 'em', 'code', 'a', 'div', 'sub', 'sup', 's']) + "
"); + client.emit('broad', "
" +/* "" + data.user.disName + " (" + data.user.genName + "): [at ]
" + striptags(md.render(striptags(data.text)), ['strong', 'i', 'em', 'code', 'a', 'div', 'sub', 'sup', 's']) + "
"); + /*client.to(data.room).emit('broad', "
" +/* "" + data.user.disName + " (" + data.user.genName + "): [at ]
" + striptags(md.render(striptags(data.text)), ['strong', 'i', 'em', 'code', 'a', 'div', 'sub', 'sup', 's']) + "
"); /*client.to(data.room).emit('broadNotif', data); } else if (data.type == 'audio') { - client.emit('broad', "
" +/* "" + data.user.disName + " (" + data.user.genName + "): [at ]
" + striptags(md.render(striptags(data.text)), ['strong', 'i', 'em', 'code', 'a', 'div', 'sub', 'sup', 's']) + "
"); - client.to(data.room).emit('broad', "
" +/* "" + data.user.disName + " (" + data.user.genName + "): [at ]
" + striptags(md.render(striptags(data.text)), ['strong', 'i', 'em', 'code', 'a', 'div', 'sub', 'sup', 's']) + "
"); + client.emit('broad', "
" +/* "" + data.user.disName + " (" + data.user.genName + "): [at ]
" + striptags(md.render(striptags(data.text)), ['strong', 'i', 'em', 'code', 'a', 'div', 'sub', 'sup', 's']) + "
"); + client.to(data.room).emit('broad', "
" +/* "" + data.user.disName + " (" + data.user.genName + "): [at ]
" + striptags(md.render(striptags(data.text)), ['strong', 'i', 'em', 'code', 'a', 'div', 'sub', 'sup', 's']) + "
"); client.to(data.room).emit('broadNotif', data); } */