diff --git a/modules/users/users.js b/modules/users/users.js index 5b72d3a..c53a32b 100644 --- a/modules/users/users.js +++ b/modules/users/users.js @@ -18,12 +18,8 @@ var users = function(dbot) { 'primaryNick': nick, 'currentNick': nick }, function(err, result) { - if(!err) { - dbot.api.event.emit('new_user', [ result ]); - callback(null, result); - } else { - callback(true, null); - } + if(!err) dbot.api.event.emit('new_user', [ result ]); + callback(err, result); }); }.bind(this), diff --git a/modules/weather/config.json b/modules/weather/config.json new file mode 100644 index 0000000..8ecd7f3 --- /dev/null +++ b/modules/weather/config.json @@ -0,0 +1,3 @@ +{ + "api_key": "no" +} diff --git a/modules/weather/weather.js b/modules/weather/weather.js index f7e50ec..90c77ab 100644 --- a/modules/weather/weather.js +++ b/modules/weather/weather.js @@ -15,7 +15,8 @@ var weather = function(dbot) { 'url': this.ApiRoot + 'weather', 'qs': { 'q': city, - 'units': 'metric' + 'units': 'metric', + 'APPID': this.config.api_key }, 'json': true }, function(err, response, body) {