Unmute fix, /getarea
prettying.
This commit is contained in:
parent
69c58694ed
commit
7d207208dc
@ -224,12 +224,7 @@ class ClientManager:
|
||||
info += '\r\n'
|
||||
|
||||
lock = {True: '[LOCKED]', False: ''}
|
||||
owner = 'FREE'
|
||||
if area.owned:
|
||||
for client in [x for x in area.clients if x.is_cm]:
|
||||
owner = 'CM: {}'.format(client.get_char_name())
|
||||
break
|
||||
info += '[{}]: [{} users][{}][{}]{}'.format(area.abbreviation, len(area.clients), area.status, owner, lock[area.is_locked])
|
||||
info += '[{}]: [{} users][{}]{}'.format(area.abbreviation, len(area.clients), area.status, lock[area.is_locked])
|
||||
|
||||
sorted_clients = []
|
||||
for client in area.clients:
|
||||
|
@ -809,10 +809,10 @@ def ooc_cmd_ooc_unmute(client, arg):
|
||||
if not client.is_mod:
|
||||
raise ClientError('You must be authorized to do that.')
|
||||
if len(arg) == 0:
|
||||
raise ArgumentError('You must specify a target. Use /ooc_mute <OOC-name>.')
|
||||
targets = client.server.client_manager.get_targets(client, TargetType.ID, arg, False)
|
||||
raise ArgumentError('You must specify a target. Use /ooc_unmute <OOC-name>.')
|
||||
targets = client.server.client_manager.get_ooc_muted_clients()
|
||||
if not targets:
|
||||
raise ArgumentError('Target not found. Use /ooc_mute <OOC-name>.')
|
||||
raise ArgumentError('Targets not found. Use /ooc_unmute <OOC-name>.')
|
||||
for target in targets:
|
||||
target.is_ooc_muted = False
|
||||
client.send_host_message('Unmuted {} existing client(s).'.format(len(targets)))
|
||||
|
Loading…
Reference in New Issue
Block a user