From 3b3b393d6a0daed2cfbbfe99cb763f9a4f7cd7a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kasper=20Rynning-T=C3=B8nnesen?= Date: Fri, 26 Jun 2015 16:36:33 +0200 Subject: [PATCH] Updated unique ids and fixed mobile bug --- server/server.js | 24 ++---------------------- 1 file changed, 2 insertions(+), 22 deletions(-) diff --git a/server/server.js b/server/server.js index 30077241..44b116ad 100755 --- a/server/server.js +++ b/server/server.js @@ -64,6 +64,8 @@ io.on('connection', function(socket){ var in_list = false; var name = rndName(guid,8); var short_id = uniqueID(socket.id,4); + unique_ids.push(short_id); + socket.on('namechange', function(data) { @@ -501,28 +503,6 @@ io.on('connection', function(socket){ } }); - /* - - >be chilling at home - >listening to music - >ohshit.gif - >MRW client disconntects - >no clue wat to do - >accidently delete all channels in panic - >fuck.jpg - >all videos on yotube deleted as well - >nononono.mov - >try to hack nsa and get data back - >can't connect - >realize im running on localhost - >nothing really deleted - >world crisis adverted - >MFW ( ^o^') - - */ - - - socket.on('disconnect', function() { if(in_list)