From b02ad7f7a7267d68df9b538b37c0740899f614df Mon Sep 17 00:00:00 2001 From: Luke Slater Date: Tue, 8 Nov 2011 16:22:40 +0000 Subject: [PATCH] Fix npcs thingy whatever --- modules/quotes.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/quotes.js b/modules/quotes.js index 685df03..5c4854a 100644 --- a/modules/quotes.js +++ b/modules/quotes.js @@ -94,7 +94,7 @@ var quotes = function(dbot) { if(!Object.isArray(quotes[q[1]])) { quotes[q[1]] = []; } else { - if (q2 in quotes[q[1]]) { + if (q[2] in quotes[q[1]]) { dbot.say(data.channel, 'Quote already in DB. Initiate incineration.'); return; } @@ -181,4 +181,4 @@ var quotes = function(dbot) { exports.fetch = function(dbot) { return quotes(dbot); -}; \ No newline at end of file +};