admin can bypass locks

This commit is contained in:
Luke Slater 2012-02-13 03:48:56 +00:00
parent 141fc40a04
commit 23cd0218ac

View File

@ -54,7 +54,7 @@ var quotes = function(dbot) {
q[1] = q[1].trim()
key = q[1].toLowerCase();
if(quotes.hasOwnProperty(q[1])) {
if(!dbot.db.locks.include(q[1])) {
if(!dbot.db.locks.include(q[1]) && data.user != dbot.admin) {
var quote = quotes[key].pop();
rmAllowed = false;
dbot.say(data.channel, '\'' + quote + '\' removed from ' + q[1]);