Skip to content

Commit 2c23fc0

Browse files
fix clients not being properly disconnecetd due to a minor oversight
1 parent 4be4d0c commit 2c23fc0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/area.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -814,7 +814,7 @@ def remove_client(self, client):
814814
client.send_ooc(
815815
"You can only be a CM of a single area in this hub.")
816816
# Trigger this routine only if a non-privileged client left the area, and there are no GMs in this hub.
817-
if self.locking_allowed and len(self._owners) <= 0 and len(self.area_manager.can_gm) <= 0:
817+
if self.locking_allowed and len(self._owners) <= 0 and len(self.area_manager.owners) <= 0:
818818
# Since anyone can lock/unlock, unlock if we were the last client in this area and it was locked.
819819
if len(self.clients) - 1 <= 0:
820820
if self.locked:

0 commit comments

Comments
 (0)