diff --git a/modules/quotes/commands.js b/modules/quotes/commands.js index c9a54f4..c3d0522 100644 --- a/modules/quotes/commands.js +++ b/modules/quotes/commands.js @@ -1,6 +1,7 @@ var _ = require('underscore')._; var commands = function(dbot) { + var quotes = dbot.db.quoteArrs; var commands = { // Alternative syntax to ~q '~': function(event) { @@ -26,7 +27,6 @@ var commands = function(dbot) { }, '~rmdeny': function(event) { - var quotes = this.quotes; var rmCache = this.rmCache; var rmCacheCount = rmCache.length; for(var i=0;i