diff options
author | André Glüpker <git@wgmd.de> | 2017-10-03 22:38:07 +0200 |
---|---|---|
committer | André Glüpker <git@wgmd.de> | 2017-10-03 22:38:07 +0200 |
commit | 54da5b4c59db4046367350f587f068140f15746a (patch) | |
tree | 7fc528a0552d923b01ce2c07b71773160e1e684a | |
parent | 717b341e46d03ccb07c547ffa70ff713e9a363f9 (diff) | |
download | steam-54da5b4c59db4046367350f587f068140f15746a.tar.gz steam-54da5b4c59db4046367350f587f068140f15746a.tar.bz2 steam-54da5b4c59db4046367350f587f068140f15746a.zip |
List multiple profiles for using friends= method
-rwxr-xr-x | main.py | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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: |