3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-24 04:49:25 +01:00

quotes ignore check for ~quotecat

This commit is contained in:
Luke Slater 2012-04-15 23:26:14 +01:00
parent 8f5759252f
commit 79cf8243a0

View File

@ -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);