From 3c5036fef4cd60448144c717d1454317564e80b6 Mon Sep 17 00:00:00 2001 From: Luke Slater Date: Sun, 28 Aug 2011 17:24:48 +0100 Subject: [PATCH] Fixed mis-variable-naming in ~qcount --- modules/quotes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/quotes.js b/modules/quotes.js index 9d6af82..eb02bfa 100644 --- a/modules/quotes.js +++ b/modules/quotes.js @@ -17,7 +17,7 @@ var quotes = function(dbot) { '~qcount': function(data, params) { var q = data.message.valMatch(/^~qcount ([\d\w\s]*)/, 2); if(q) { - key = key[1].trim().toLowerCase(); + key = q[1].trim().toLowerCase(); if(quotes.hasOwnProperty(key)) { dbot.say(data.channel, key + ' has ' + quotes[key].length + ' quotes.'); } else {