From a3f9e238bfb5f7c461721b3b4fa74bd921c4c424 Mon Sep 17 00:00:00 2001 From: reality Date: Tue, 10 Sep 2013 18:11:39 +0000 Subject: [PATCH] logging fix + caching crash fix --- modules/imgur/imgur.js | 2 +- modules/log/log.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/imgur/imgur.js b/modules/imgur/imgur.js index 6aa0738..61f7d83 100644 --- a/modules/imgur/imgur.js +++ b/modules/imgur/imgur.js @@ -90,7 +90,7 @@ var imgur = function(dbot) { if(_.has(dbot.modules, 'quotes')){ // autoadd: {"abcdef": "facebookman"} if(_.has(dbot.config.modules.imgur.autoadd,hash)){ - var category = dbot.config.imgur.autoadd[hash]; + var category = this.config.autoadd[hash]; if (_.contains(category, testUrl)){ // there's probably less than 62^5 chance of this happening } else { diff --git a/modules/log/log.js b/modules/log/log.js index f7c77c0..2ae1df5 100644 --- a/modules/log/log.js +++ b/modules/log/log.js @@ -58,6 +58,7 @@ var log = function(dbot) { }.bind(this)); process.on('uncaughtException', function(err) { + console.log(err); _.each(this.config.logChannel, function(chan, server) { this.api.logError(server, err); }, this);