diff --git a/modules/quotes.js b/modules/quotes.js index af0983b..922ac31 100644 --- a/modules/quotes.js +++ b/modules/quotes.js @@ -91,7 +91,7 @@ var quotes = function(dbot) { } } else { // Give total quote count var totalQuoteCount = 0; - for(var category in dbot.db.quotes) { + for(var category in quotes) { totalQuoteCount += category.length; } dbot.say(data.channel, 'There are ' + totalQuoteCount + ' quotes in total.');