mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-14 15:00:16 +02:00
More indentation
Notepad++ was configured to use tabs instead of spaces. That shouldn't happen anymore.
This commit is contained in:
parent
ee3fe5e43e
commit
2eb0bd5221
@ -95,17 +95,17 @@ class Teamspeak3Manager:
|
||||
|
||||
@staticmethod
|
||||
def _add_user_to_group(uid, groupname):
|
||||
print("--RUNNING _add_user_to_groups()--")
|
||||
print("--RUNNING _add_user_to_groups()--")
|
||||
groupname = groupname[:30]
|
||||
print("groupname = {0}").format(groupname)
|
||||
print("groupname = {0}").format(groupname)
|
||||
server = Teamspeak3Manager.__get_created_server()
|
||||
server_groups = Teamspeak3Manager._group_list()
|
||||
user_groups = Teamspeak3Manager._user_group_list(uid)
|
||||
print("user_groups = {0}").format(user_groups)
|
||||
print("user_groups = {0}").format(user_groups)
|
||||
|
||||
if not groupname in server_groups:
|
||||
#Teamspeak3Manager._create_group(groupname)
|
||||
print("----GROUP NAME WAS NOT FOUND IN SERVER GROUPS----")
|
||||
print("----GROUP NAME WAS NOT FOUND IN SERVER GROUPS----")
|
||||
if not groupname in user_groups:
|
||||
resp = server.send_command('servergroupaddclient',
|
||||
{'sgid': Teamspeak3Manager._group_id_by_name(groupname), 'cldbid': uid})
|
||||
|
Loading…
x
Reference in New Issue
Block a user