Auto-reset an area's status to idle if it empties out.
This commit is contained in:
parent
d54064d892
commit
0032c36822
@ -82,6 +82,8 @@ class AreaManager:
|
||||
|
||||
def remove_client(self, client):
|
||||
self.clients.remove(client)
|
||||
if len(self.clients) == 0:
|
||||
self.change_status('IDLE')
|
||||
if client.is_cm:
|
||||
client.is_cm = False
|
||||
self.owned = False
|
||||
|
Loading…
Reference in New Issue
Block a user