Prompt users to join TS when creating account

- will allow groups to sync
 - add button to get back to this prompt
 - do not sync groups until joined server
Closes #331
This commit is contained in:
Adarnof
2016-03-26 03:08:28 +00:00
parent ad7ace872f
commit 361e4a6409
6 changed files with 61 additions and 4 deletions

View File

@@ -88,11 +88,9 @@ class Teamspeak3Manager:
if type(groups) == list:
logger.debug("Recieved multiple groups. Iterating.")
for group in groups:
logger.debug("Assigning name/id dict: %s = %s" % (group['keys']['name'], group['keys']['sgid']))
outlist[group['keys']['name']] = group['keys']['sgid']
elif type(groups) == dict:
logger.debug("Recieved single group.")
logger.debug("Assigning name/id dict: %s = %s" % (groups['keys']['name'], groups['keys']['sgid']))
outlist[groups['keys']['name']] = groups['keys']['sgid']
logger.debug("Returning name/id pairing: %s" % outlist)
return outlist