Casting int to str

because it's better than trying to compare them shithead
This commit is contained in:
Brett Costabile 2015-11-03 00:41:37 -05:00
parent b29d6bd7da
commit adcbcdaf52

View File

@ -105,11 +105,12 @@ class Teamspeak3Manager:
@staticmethod @staticmethod
def _remove_user_from_group(uid, groupid): def _remove_user_from_group(uid, groupid):
print("--REMOVING GROUP FROM USER--")
server = Teamspeak3Manager.__get_created_server() server = Teamspeak3Manager.__get_created_server()
server_groups = Teamspeak3Manager._group_list() server_groups = Teamspeak3Manager._group_list()
user_groups = Teamspeak3Manager._user_group_list(uid) user_groups = Teamspeak3Manager._user_group_list(uid)
if groupid in user_groups: if str(groupid) in user_groups:
server.send_command('servergroupdelclient', server.send_command('servergroupdelclient',
{'sgid': str(groupid), 'cldbid': uid}) {'sgid': str(groupid), 'cldbid': uid})