From 676be3f93f74090879b00aefb546fd8a3e80c03e Mon Sep 17 00:00:00 2001 From: Luke Slater Date: Tue, 29 Nov 2011 13:20:47 +0000 Subject: [PATCH] total quote count --- modules/quotes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.');