mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 14:52:15 +00:00
Use ticker instead of name
This commit is contained in:
@@ -162,12 +162,12 @@ class TS3Service(BaseService):
|
|||||||
|
|
||||||
# Add to corporation groups
|
# Add to corporation groups
|
||||||
if character and character.corporation:
|
if character and character.corporation:
|
||||||
if character.corporation.name in usrgrplist:
|
if character.corporation.ticker in usrgrplist:
|
||||||
del usrgrplist[character.corporation.name]
|
del usrgrplist[character.corporation.ticker]
|
||||||
else:
|
else:
|
||||||
if not character.corporation.name in tsgrplist:
|
if not character.corporation.ticker in tsgrplist:
|
||||||
tsgrplist[character.corporation.name] = self._create_group(character.corporation.name)
|
tsgrplist[character.corporation.ticker] = self._create_group(character.corporation.ticker)
|
||||||
self.conn.send_command('servergroupaddclient', {'sgid': tsgrplist[character.corporation.name], 'cldbid': cldbid })
|
self.conn.send_command('servergroupaddclient', {'sgid': tsgrplist[character.corporation.ticker], 'cldbid': cldbid })
|
||||||
|
|
||||||
# Remove OKed groups from the delete list
|
# Remove OKed groups from the delete list
|
||||||
for g in groups:
|
for g in groups:
|
||||||
|
|||||||
Reference in New Issue
Block a user