forked from GitHub/dbot
admin can bypass locks
This commit is contained in:
parent
2cd7a3992c
commit
8783990d7f
@ -54,7 +54,7 @@ var quotes = function(dbot) {
|
|||||||
q[1] = q[1].trim()
|
q[1] = q[1].trim()
|
||||||
key = q[1].toLowerCase();
|
key = q[1].toLowerCase();
|
||||||
if(quotes.hasOwnProperty(q[1])) {
|
if(quotes.hasOwnProperty(q[1])) {
|
||||||
if(!dbot.db.locks.include(q[1]) && data.user != dbot.admin) {
|
if(!dbot.db.locks.include(q[1]) || data.user == dbot.admin) {
|
||||||
var quote = quotes[key].pop();
|
var quote = quotes[key].pop();
|
||||||
rmAllowed = false;
|
rmAllowed = false;
|
||||||
dbot.say(data.channel, '\'' + quote + '\' removed from ' + q[1]);
|
dbot.say(data.channel, '\'' + quote + '\' removed from ' + q[1]);
|
||||||
|
Loading…
Reference in New Issue
Block a user