From ba8a603e2621d30636007b28784897a2cc2687ef Mon Sep 17 00:00:00 2001 From: reality Date: Tue, 29 Oct 2013 16:03:19 +0000 Subject: [PATCH] dont compare if lfm is == --- modules/lastfm/lastfm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/lastfm/lastfm.js b/modules/lastfm/lastfm.js index b00c9c9..d1334bb 100644 --- a/modules/lastfm/lastfm.js +++ b/modules/lastfm/lastfm.js @@ -234,7 +234,7 @@ var lastfm = function(dbot) { async.eachSeries(profiles, function(p1, next) { scores[p1.id] = {}; async.eachSeries(profiles, function(p2, subnext) { - if(p1.id == p2.id || _.has(scores, p2.id) && _.has(scores[p2.id], p1.id)) { + if(p1.id == p2.id || p1.profile.lastfm == p2.profile.lastfm || _.has(scores, p2.id) && _.has(scores[p2.id], p1.id)) { subnext(); } else { console.log('comparing ' + p1.profile.lastfm + ' and ' + p2.profile.lastfm);