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; }