aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCerapter <cerap@protonmail.com>2018-08-24 19:14:22 +0200
committerCerapter <cerap@protonmail.com>2018-08-24 19:14:22 +0200
commit34da56eea66b015c9ed3debc694821748e7e3ec9 (patch)
tree970bf4866ee88355fa082b82c0f326c8c645074d
parent6d278330a2299fb00937622ad40725f23898794c (diff)
Blankposting is allowed again if an area loses its CM somehow.
-rw-r--r--server/area_manager.py1
-rw-r--r--server/commands.py1
2 files changed, 2 insertions, 0 deletions
diff --git a/server/area_manager.py b/server/area_manager.py
index 372195b9..15dddd60 100644
--- a/server/area_manager.py
+++ b/server/area_manager.py
@@ -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.')
diff --git a/server/commands.py b/server/commands.py
index 6d34338d..7c212baf 100644
--- a/server/commands.py
+++ b/server/commands.py
@@ -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()))