Added voted to skip to chat

This commit is contained in:
Kasper Rynning-Tønnesen
2015-05-09 12:53:05 +02:00
parent 9b10bcaa20
commit 21ee0667eb

View File

@@ -492,6 +492,7 @@ function vote(coll, id, guid, socket)
db.collection(coll).update({id:id}, {$push :{guids: guid}}, function(err, docs)
{
socket.emit("toast", "voted");
socket.broadcast.emit('chat,'+coll, rndName(guid) + " voted to skip");
sort_list(coll, undefined, false, true);
});
//sort_list(coll, undefined, false);