fix ~rmdeny and add web route /quoteremovals [#455]

This commit is contained in:
reality 2013-05-20 19:51:09 +00:00
parent 0bc0a1bdb7
commit 6d9f3b644c
2 changed files with 8 additions and 1 deletions

View File

@ -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',

View File

@ -30,6 +30,13 @@ var pages = function(dbot) {
});
});
},
'/quoteremovals': function(req, res) {
res.render('quotes', {
'name': dbot.config.name,
'quotes': _.pluck(this.rmCache, 'quote')
});
}
}
};