From 79cf8243a0d37177c52e120854554a2690da4c20 Mon Sep 17 00:00:00 2001 From: Luke Slater Date: Sun, 15 Apr 2012 23:26:14 +0100 Subject: [PATCH] quotes ignore check for ~quotecat --- modules/command.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/command.js b/modules/command.js index 55b3168..a66b12e 100644 --- a/modules/command.js +++ b/modules/command.js @@ -100,7 +100,9 @@ var command = function(dbot) { } else { q[1] = q[1].trim(); key = dbot.cleanNick(q[1]) - if(dbot.db.quoteArrs.hasOwnProperty(key) && dbot.moduleNames.include('quotes')) { + if(dbot.db.quoteArrs.hasOwnProperty(key) && dbot.moduleNames.include('quotes') && + (dbot.db.ignores.hasOwnProperty(data.user) && + dbot.db.ignores[data.user].include(name)) == false) { var params = ['~q']; key.split(' ').each((function(word) { this.push(word);