mirror of
https://github.com/reality/dbot.git
synced 2024-11-27 22:39:26 +01:00
Merge branch 'master' of https://github.com/reality/depressionbot
This commit is contained in:
commit
b34d714364
@ -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]);
|
||||
|
Loading…
Reference in New Issue
Block a user