From 982135411e3abe151661e493e5027329db5085f9 Mon Sep 17 00:00:00 2001 From: Luke Slater Date: Mon, 19 Mar 2012 18:46:33 +0000 Subject: [PATCH] Fix the long-broken "quote already in db" detection --- modules/quotes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/quotes.js b/modules/quotes.js index 03e62a7..546f5e3 100644 --- a/modules/quotes.js +++ b/modules/quotes.js @@ -158,7 +158,7 @@ var quotes = function(dbot) { if(!Object.isArray(quotes[key])) { quotes[key] = []; } else { - if (q[2] in quotes[key]) { + if (quotes[key].include(q[2]) { dbot.say(data.channel, 'Quote already in DB. Initiate incineration.'); return; }