diff --git a/package.json b/package.json index bec6872..7abad75 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,7 @@ "async": "~0.2.10", "compressjs": "~1.0.1", "gbxremote": "~0.1.4", - "request": "~2.33.0", + "request": "~2.51.0", "minimist": "~1.1.0", "varint": "~4.0.0", "moment": "~2.9.0" diff --git a/protocols/mutantfactions.js b/protocols/mutantfactions.js index bfff46a..e6bacc4 100644 --- a/protocols/mutantfactions.js +++ b/protocols/mutantfactions.js @@ -1,6 +1,6 @@ var request = require('request'); -module.exports = require('./protocols/core').extend({ +module.exports = require('./core').extend({ run: function(state) { var self = this; request({ @@ -22,7 +22,7 @@ module.exports = require('./protocols/core').extend({ break; } } - + if(!found) return self.fatal('Server not found in list'); state.raw.countrycode = fields[0];