|
@@ -213,8 +213,11 @@ if(cluster.isMaster){
|
|
|
var sockets = io.sockets.clients(data.name),
|
|
|
i;
|
|
|
runWithUserList(data.name,function(users){
|
|
|
+ var temp = [],i;
|
|
|
+ for(i in users) i && temp.push(users[i]);
|
|
|
+ users = temp;
|
|
|
socket.emit('message',{
|
|
|
- message: data.name+" users:\n\t\t"+users.filter(function(n){return n}).join("\n\t\t"),
|
|
|
+ message: data.name+" users:\n\t\t"+users.join("\n\t\t"),
|
|
|
room: data.name,
|
|
|
from: 0
|
|
|
});
|