summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xmain.py5
1 files changed, 4 insertions, 1 deletions
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: