From 2bd9b081f56a1c6fbd8b3b2364c3f4dd503fa7ec Mon Sep 17 00:00:00 2001 From: reality Date: Tue, 22 Oct 2013 14:35:37 +0000 Subject: [PATCH] fix missing sstats binds --- modules/sstats/sstats.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/sstats/sstats.js b/modules/sstats/sstats.js index efd3fc7..fbb5bfc 100644 --- a/modules/sstats/sstats.js +++ b/modules/sstats/sstats.js @@ -186,8 +186,8 @@ var sstats = function(dbot) { }); this.db.del('user_stats', oldUser.id, function() {}); this.db.save('user_stats', newUser.id, function() {}); - }); - }); + }.bind(this)); + }.bind(this)); this.db.scan('tracked_words', function(tWord) { if(_.has(tWord.users, oldUser.id)) { @@ -199,7 +199,7 @@ var sstats = function(dbot) { delete tWord.users[oldUser.id]; this.db.save('tracked_words', tWord.word, tWord, function() {}); } - }); + }.bind(this)); }.bind(this)); }.bind(this); };