mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2026-02-05 22:56:20 +01:00
Added teamspeak3 group fix
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user