From 7ca178fced1898db073db226f4f210fb1755a5b0 Mon Sep 17 00:00:00 2001 From: reality Date: Tue, 8 Jul 2014 11:33:56 +0000 Subject: [PATCH] fix merge? --- modules/sstats/sstats.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/sstats/sstats.js b/modules/sstats/sstats.js index 6c97582..cc9e70b 100644 --- a/modules/sstats/sstats.js +++ b/modules/sstats/sstats.js @@ -180,7 +180,9 @@ var sstats = function(dbot) { if(_.isObject(stat)) { _.each(ouStats[key], function(stat, sKey) { _.each(ouStats[key][sKey], function(stat, ssKey) { + if(_.has(nuStats[key][sKey], ssKey)) { nuStats[key][sKey][ssKey] += stat; + } }); }); } else {