From ceb84808eab94609d62cde9720b8d95cc95ec7eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kasper=20Rynning-T=C3=B8nnesen?= Date: Wed, 13 May 2015 14:17:39 +0200 Subject: [PATCH] more easter --- server/server.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/server.js b/server/server.js index ef114064..a6e16b43 100755 --- a/server/server.js +++ b/server/server.js @@ -41,9 +41,9 @@ io.on('connection', function(socket){ { if(name.length < 9) { + io.sockets.emit('chat,'+coll, name + " changed name to " + data); + io.sockets.emit('chat.all', [name + " changed name to " + data, coll]); name = data; - io.sockets.emit('chat,'+coll, rndName(guid) + " changed name to " + name); - io.sockets.emit('chat.all', [rndName(guid) + " changed name to " + name, coll]); } });