From 0bc0a1bdb7f18e58f4d8114236649e5ee6c6c145 Mon Sep 17 00:00:00 2001 From: reality Date: Mon, 20 May 2013 15:40:13 +0000 Subject: [PATCH] quote add for db branch in imgur --- modules/imgur/imgur.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/imgur/imgur.js b/modules/imgur/imgur.js index e5bc058..018234f 100644 --- a/modules/imgur/imgur.js +++ b/modules/imgur/imgur.js @@ -58,8 +58,8 @@ 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); + dbot.api.quotes.addQuote(category, testUrl, + dbot.config.name, function() { }); } } }