Added so channel of sender is on title of sender

This commit is contained in:
Kasper Rynning-Tønnesen
2015-05-13 12:39:31 +02:00
parent b75a176fb8
commit f9e65a5ab9
2 changed files with 5 additions and 3 deletions

View File

@@ -46,7 +46,7 @@ io.on('connection', function(socket){
{
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);
io.sockets.emit('chat.all', [rndName(guid) + ": " + data, coll]);
});
socket.on('frontpage_lists', function()