mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-12 05:50:16 +02:00
Add/Remove user need sting inputs
Had to cast groupid to str
This commit is contained in:
parent
8a0e3f309d
commit
425aef081d
@ -101,7 +101,7 @@ class Teamspeak3Manager:
|
|||||||
|
|
||||||
if not groupid in user_groups.values():
|
if not groupid in user_groups.values():
|
||||||
server.send_command('servergroupaddclient',
|
server.send_command('servergroupaddclient',
|
||||||
{'sgid': groupid, 'cldbid': uid})
|
{'sgid': str(groupid), 'cldbid': uid})
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def _remove_user_from_group(uid, groupid):
|
def _remove_user_from_group(uid, groupid):
|
||||||
@ -111,7 +111,7 @@ class Teamspeak3Manager:
|
|||||||
|
|
||||||
if groupid in user_groups:
|
if groupid in user_groups:
|
||||||
server.send_command('servergroupdelclient',
|
server.send_command('servergroupdelclient',
|
||||||
{'sgid': groupid, 'cldbid': uid})
|
{'sgid': str(groupid), 'cldbid': uid})
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def _sync_ts_group_db():
|
def _sync_ts_group_db():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user