Teamspeak 3 - avoid ServerQuery clients

This commit is contained in:
Jim Nordbø 2016-05-23 00:35:56 +02:00
parent 957c0e20ea
commit 6bcf86fe81

View file

@ -25,7 +25,9 @@ module.exports = require('./core').extend({
for(var i = 0; i < data.length; i++) { for(var i = 0; i < data.length; i++) {
data[i].name = data[i].client_nickname; data[i].name = data[i].client_nickname;
delete data[i].client_nickname; delete data[i].client_nickname;
state.players.push(data[i]); if(data[i].client_type == 0) {
state.players.push(data[i]);
}
} }
c(); c();
}); });