node-gamedig/protocols/warsow.js

13 lines
287 B
JavaScript
Raw Normal View History

2014-10-29 08:02:03 +01:00
module.exports = require('./quake3').extend({
finalizeState: function(state) {
this._super(state);
if(state.players) {
for(var i = 0; i < state.players.length; i++) {
var player = state.players[i];
player.team = player.address;
delete player.address;
}
}
}
});