aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCerapter <cerap@protonmail.com>2018-09-01 22:06:56 +0200
committerCerapter <cerap@protonmail.com>2018-09-01 22:06:56 +0200
commit69c58694ed033ed7a5fac44e2c701341210a9498 (patch)
tree97f476ac289a6ccdabf198c00f49c737242194ab
parentdffd48711a1bd68421832867d69f589da64e972b (diff)
`/getarea` expanded to show info from `/area`.
-rw-r--r--server/client_manager.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/server/client_manager.py b/server/client_manager.py
index 83232993..292af2a9 100644
--- a/server/client_manager.py
+++ b/server/client_manager.py
@@ -207,7 +207,7 @@ class ClientManager:
owner = 'FREE'
if area.owned:
for client in [x for x in area.clients if x.is_cm]:
- owner = 'MASTER: {}'.format(client.get_char_name())
+ owner = 'CM: {}'.format(client.get_char_name())
break
msg += '\r\nArea {}: {} (users: {}) [{}][{}]{}'.format(area.abbreviation, area.name, len(area.clients), area.status, owner, lock[area.is_locked])
if self.area == area:
@@ -221,6 +221,16 @@ class ClientManager:
except AreaError:
raise
info += '=== {} ==='.format(area.name)
+ 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])
+
sorted_clients = []
for client in area.clients:
if (not mods) or client.is_mod: