From 54da5b4c59db4046367350f587f068140f15746a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Gl=C3=BCpker?= Date: Tue, 3 Oct 2017 22:38:07 +0200 Subject: List multiple profiles for using friends= method --- main.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 82f9609..f3f146d 100755 --- a/main.py +++ b/main.py @@ -81,7 +81,10 @@ def lobby(): profiles = steam.getMultipleFriends(friendList) for steamid, profile in profiles.items(): for friendid in profile['friends']: - steamids[friendid] = {'main': profile['personaname']} + if friendid in steamids: + steamids[friendid]['main'] += ', ' + profile['personaname'] + else: + steamids[friendid] = {'main': profile['personaname']} else: # Load config (steamids, names) with open(os.path.join(CONFIG, 'lobby.json'), 'rt') as config: -- cgit v1.2.3