diff --git a/modules/quotes/commands.js b/modules/quotes/commands.js index e8205c7..1ce726a 100644 --- a/modules/quotes/commands.js +++ b/modules/quotes/commands.js @@ -87,7 +87,7 @@ var commands = function(dbot) { _.each(rmCache, function(quote, index) { this.api.addQuote(quote.key, quote.quote, event.user, function(newCount) { }); - }); + }.bind(this)); rmCache.length = 0; event.reply(dbot.t('quote_cache_reinstated', diff --git a/modules/quotes/pages.js b/modules/quotes/pages.js index 0f0c977..abdd4c3 100644 --- a/modules/quotes/pages.js +++ b/modules/quotes/pages.js @@ -30,6 +30,13 @@ var pages = function(dbot) { }); }); }, + + '/quoteremovals': function(req, res) { + res.render('quotes', { + 'name': dbot.config.name, + 'quotes': _.pluck(this.rmCache, 'quote') + }); + } } };