From 1f4c3fec8f01bc5c3e9d9f4f0b1faa6efa3711fe Mon Sep 17 00:00:00 2001 From: Luke Slater Date: Thu, 13 Oct 2011 17:39:11 +0100 Subject: [PATCH] qsearch --- modules/quotes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/quotes.js b/modules/quotes.js index f562ee1..1e66233 100644 --- a/modules/quotes.js +++ b/modules/quotes.js @@ -20,7 +20,7 @@ var quotes = function(dbot) { if(params[2] === undefined) { dbot.say(data.channel, 'Next time provide a search parameter. Commence incineration.'); } else { - if(!quote.hasOwnProperty(params[1])) { + if(!quotes.hasOwnProperty(params[1])) { dbot.say(data.channel, 'That category has no quotes in it. Commence incineration.'); } else { var matches = [];