This commit is contained in:
Basraah 2017-09-05 14:46:38 +10:00 committed by GitHub
parent 1b1b692ac0
commit c2f12eed26

View File

@ -246,6 +246,10 @@ class Teamspeak3Manager:
logger.debug("Deleting user %s with id %s from TS3 server." % (user, uid))
if user:
clients = self.server.send_command('clientlist')
if isinstance(clients, dict):
# Rewrap list
clients = [clients]
for client in clients:
try:
if client['keys']['client_database_id'] == user: