Patch warsow

This commit is contained in:
Michael Morrison 2013-07-10 10:52:15 -05:00
parent 935f61c4ad
commit 45dc08c946

View file

@ -33,12 +33,17 @@ module.exports = require('./core').extend({
var args = []; var args = [];
var split = player.split('"'); var split = player.split('"');
var inQuote = false; var inQuote = false;
for(var i = 0; i < split; i++) { split.forEach(function(part,i) {
var part = split[i];
var inQuote = (i%2 == 1); var inQuote = (i%2 == 1);
if(inQuote) args.push(part); if(inQuote) {
else args = args.concat(part.split(' ')); args.push(part);
} } else {
var splitSpace = part.split(' ');
splitSpace.forEach(function(subpart) {
if(subpart) args.push(subpart);
});
}
});
var frags = parseInt(args[0]); var frags = parseInt(args[0]);
var ping = parseInt(args[1]); var ping = parseInt(args[1]);