From b203a1c220dadbf76badea26df5293b0936f7a25 Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Tue, 7 Jun 2011 09:46:02 +0100 Subject: [PATCH] Switch clientkick to use the clientlist function --- ts3/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ts3/__init__.py b/ts3/__init__.py index 556e492..ec65008 100644 --- a/ts3/__init__.py +++ b/ts3/__init__.py @@ -354,8 +354,8 @@ class TS3Server(TS3Proto): client = None if cldbid: - response = self.send_command('clientlist') - for cl in response.data: + clientlist = self.send_command('clientlist') + for cl in clientlist.values(): if int(cl['client_database_id']) == cldbid: client = cl['clid'] self.logger.debug("clientkick - identified user from clid (%s = %s)" % (cldbid, client))