From fbb60306d56effa650a2a0dab7317e25ca80c452 Mon Sep 17 00:00:00 2001 From: reality Date: Tue, 15 Jan 2013 15:32:44 +0000 Subject: [PATCH] fix binding bug --- modules/quotes/quotes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/quotes/quotes.js b/modules/quotes/quotes.js index c2145e1..3cd13b2 100644 --- a/modules/quotes/quotes.js +++ b/modules/quotes/quotes.js @@ -60,7 +60,7 @@ var quotes = function(dbot) { if(this.rmCache.length < dbot.config.quotes.rmLimit) { this.rmTimer = dbot.timers.addOnceTimer(600000, function() { this.rmCache.length = 0; // lol what - }); + }.bind(this)); } else { _.each(dbot.config.admins, function(admin) { dbot.say(event.server, admin, dbot.t('rm_cache_limit'));