mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-12-28 21:11:01 +00:00
Added all-chat
This commit is contained in:
@@ -42,6 +42,13 @@ io.on('connection', function(socket){
|
||||
io.sockets.emit('chat,'+coll, rndName(guid) + ": " + data);
|
||||
});
|
||||
|
||||
socket.on("all,chat", function(data)
|
||||
{
|
||||
check_inlist(coll, guid, socket);
|
||||
if(data != "" && data !== undefined && data !== null && data.length < 151 && data.replace(/\s/g, '').length)
|
||||
io.sockets.emit('chat.all', rndName(guid) + ": " + data);
|
||||
});
|
||||
|
||||
socket.on('frontpage_lists', function()
|
||||
{
|
||||
var playlists_to_send = [];
|
||||
|
||||
Reference in New Issue
Block a user