mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-13 22:40:16 +02:00
Added teamspeak3 group fix
This commit is contained in:
parent
1695073c3c
commit
81768983d8
@ -1,5 +1,3 @@
|
||||
import types
|
||||
|
||||
from django.conf import settings
|
||||
|
||||
from services.managers.util.ts3 import TS3Server
|
||||
@ -85,7 +83,7 @@ class Teamspeak3Manager:
|
||||
server = Teamspeak3Manager.__get_created_server()
|
||||
group_cache = server.send_command('servergrouplist')
|
||||
outlist = {}
|
||||
if type(group_cache) is types.DictType:
|
||||
if group_cache:
|
||||
for group in group_cache:
|
||||
outlist[group['keys']['name']] = group['keys']['sgid']
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user