From b12259643abd66f93e8968e273c9ffe06e155d1b Mon Sep 17 00:00:00 2001 From: reality Date: Wed, 23 Jan 2013 16:12:08 +0000 Subject: [PATCH] sometimes i think i might be retarded --- modules/quotes/commands.js | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) 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