diff --git a/modules/quotes.js b/modules/quotes.js index d27fedb..d82679b 100644 --- a/modules/quotes.js +++ b/modules/quotes.js @@ -52,7 +52,7 @@ var quotes = function(dbot) { if(quotes.hasOwnProperty(q[1])) { if(!dbot.db.locks.include(q[1]) || data.user == dbot.admin) { var quote = quotes[key].pop(); - if(quotes[key].length) { + if(quotes[key].length === 0) { delete quotes[key]; } rmAllowed = false;