summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndré Glüpker <git@wgmd.de>2017-10-03 22:38:07 +0200
committerAndré Glüpker <git@wgmd.de>2017-10-03 22:38:07 +0200
commit54da5b4c59db4046367350f587f068140f15746a (patch)
tree7fc528a0552d923b01ce2c07b71773160e1e684a
parent717b341e46d03ccb07c547ffa70ff713e9a363f9 (diff)
downloadsteam-54da5b4c59db4046367350f587f068140f15746a.tar.gz
steam-54da5b4c59db4046367350f587f068140f15746a.tar.bz2
steam-54da5b4c59db4046367350f587f068140f15746a.zip
List multiple profiles for using friends= method
-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: