Update modules/quotes/quotes.js

Fix not found output
This commit is contained in:
Luke Slater 2012-12-20 13:27:56 +01:00
parent 950ba882b8
commit 1ff6c5c3c2

View File

@ -185,7 +185,6 @@ var quotes = function(dbot) {
if(!dbot.db.locks.include(key)) {
var category = quotes[key];
var index = category.indexOf(quote);
var quote = category[index];
if(index !== -1) {
category.splice(index, 1);
if(category.length === 0) {