3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-27 14:29:29 +01:00

logging fix + caching crash fix

This commit is contained in:
reality 2013-09-10 18:11:39 +00:00
parent fbc0aa59c2
commit a3f9e238bf
2 changed files with 2 additions and 1 deletions

View File

@ -90,7 +90,7 @@ var imgur = function(dbot) {
if(_.has(dbot.modules, 'quotes')){ if(_.has(dbot.modules, 'quotes')){
// autoadd: {"abcdef": "facebookman"} // autoadd: {"abcdef": "facebookman"}
if(_.has(dbot.config.modules.imgur.autoadd,hash)){ 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)){ if (_.contains(category, testUrl)){
// there's probably less than 62^5 chance of this happening // there's probably less than 62^5 chance of this happening
} else { } else {

View File

@ -58,6 +58,7 @@ var log = function(dbot) {
}.bind(this)); }.bind(this));
process.on('uncaughtException', function(err) { process.on('uncaughtException', function(err) {
console.log(err);
_.each(this.config.logChannel, function(chan, server) { _.each(this.config.logChannel, function(chan, server) {
this.api.logError(server, err); this.api.logError(server, err);
}, this); }, this);