Blankposting is allowed again if an area loses its CM somehow.

This commit is contained in:
Cerapter 2018-08-24 19:14:22 +02:00
parent 6d278330a2
commit 34da56eea6
2 changed files with 2 additions and 0 deletions

View File

@ -81,6 +81,7 @@ class AreaManager:
def unlock(self):
self.is_locked = False
self.blankposting_allowed = True
self.invite_list = {}
self.send_host_message('This area is open now.')

View File

@ -643,6 +643,7 @@ def ooc_cmd_uncm(client, arg):
if client.is_cm:
client.is_cm = False
client.area.owned = False
client.area.blankposting_allowed = True
if client.area.is_locked:
client.area.unlock()
client.area.send_host_message('{} is no longer CM in this area.'.format(client.get_char_name()))