qadd reality ban

This commit is contained in:
Luke Slater 2011-10-12 15:36:51 +01:00
parent 4222857ed3
commit 78508dd1a5

View File

@ -116,10 +116,16 @@ var quotes = function(dbot) {
} }
if(once) { if(once) {
dbot.db.quoteArrs['realityonce'].push('reality ' + once[1] + '.'); if((this.db.bans.hasOwnProperty('~qadd') &&
addStack.push('realityonce'); this.db.bans['~qadd'].include(data.user)) ||
rmAllowed = true; this.db.bans['*'].include(data.user)) {
dbot.instance.say(data.channel, '\'reality ' + once[1] + '.\' saved.'); this.say(data.channel, data.user + ' is banned from using this command. Commence incineration.');
} else {
dbot.db.quoteArrs['realityonce'].push('reality ' + once[1] + '.');
addStack.push('realityonce');
rmAllowed = true;
dbot.instance.say(data.channel, '\'reality ' + once[1] + '.\' saved.');
}
} }
}, },