Skip to content

Commit

Permalink
modify
Browse files Browse the repository at this point in the history
  • Loading branch information
yjseo29 committed Apr 5, 2016
1 parent 466b913 commit 923f67c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ io.on('connection',function(socket){
var url = data.url;

if(rooms[url] != undefined) {

if(Object.keys(rooms[url].user_list).length)
socket.room = url;
socket.join(url);
socket.username = data.username;
Expand Down

0 comments on commit 923f67c

Please sign in to comment.