From 15989715230652cd62f64905e698c2900d62d9fa Mon Sep 17 00:00:00 2001 From: Michael Morrison Date: Sun, 18 Jan 2015 01:44:19 -0600 Subject: [PATCH] Upgrade request dependency, fix mutantfactions --- package.json | 2 +- protocols/mutantfactions.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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];