From 1c0b3d57804fc505350b2439e7f051aa7f62f259 Mon Sep 17 00:00:00 2001 From: reality Date: Tue, 22 Oct 2013 14:38:10 +0000 Subject: [PATCH] apparently undefined is not a function. who knew? --- modules/sstats/sstats.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/sstats/sstats.js b/modules/sstats/sstats.js index fbb5bfc..158707b 100644 --- a/modules/sstats/sstats.js +++ b/modules/sstats/sstats.js @@ -185,7 +185,7 @@ var sstats = function(dbot) { } }); this.db.del('user_stats', oldUser.id, function() {}); - this.db.save('user_stats', newUser.id, function() {}); + this.db.save('user_stats', newUser.id, newUser, function() {}); }.bind(this)); }.bind(this));