forked from GitHub/dbot
qadd reality ban
This commit is contained in:
parent
4222857ed3
commit
78508dd1a5
@ -116,11 +116,17 @@ var quotes = function(dbot) {
|
||||
}
|
||||
|
||||
if(once) {
|
||||
if((this.db.bans.hasOwnProperty('~qadd') &&
|
||||
this.db.bans['~qadd'].include(data.user)) ||
|
||||
this.db.bans['*'].include(data.user)) {
|
||||
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.');
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
'on': 'PRIVMSG'
|
||||
|
Loading…
Reference in New Issue
Block a user