From 648b44b298a690d8ecc70cd4b95f8848ae303708 Mon Sep 17 00:00:00 2001 From: reality Date: Mon, 20 May 2013 15:35:01 +0000 Subject: [PATCH] fix add on empty cat --- modules/imgur/imgur.js | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/imgur/imgur.js b/modules/imgur/imgur.js index 17cda65..8e54d03 100644 --- a/modules/imgur/imgur.js +++ b/modules/imgur/imgur.js @@ -59,6 +59,7 @@ var imgur = function(dbot) { if (_.contains(category, testUrl)){ // there's probably less than 62^5 chance of this happening } else { + if(!_.has(dbot.db.quoteArrs, category)) dbot.db.quoteArrs[category] = []; dbot.db.quoteArrs[category].push(testUrl); } }