From cf0c6f19c45c2a6f379de0b67be80eee439ca9b7 Mon Sep 17 00:00:00 2001 From: reality Date: Thu, 24 Oct 2013 16:00:15 +0000 Subject: [PATCH] hopefully fix mergeusers for the last time --- modules/sstats/sstats.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/sstats/sstats.js b/modules/sstats/sstats.js index c3fec99..6c97582 100644 --- a/modules/sstats/sstats.js +++ b/modules/sstats/sstats.js @@ -179,7 +179,9 @@ var sstats = function(dbot) { if(key != 'creation' && key != 'id') { if(_.isObject(stat)) { _.each(ouStats[key], function(stat, sKey) { - nuStats[key][sKey] += stat; + _.each(ouStats[key][sKey], function(stat, ssKey) { + nuStats[key][sKey][ssKey] += stat; + }); }); } else { nuStats[key] += stat;