aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCerapter <cerap@protonmail.com>2018-08-15 19:50:41 +0200
committerCerapter <cerap@protonmail.com>2018-08-15 19:50:41 +0200
commit8c859398f1b1308633584103c334bb103bf6cf2c (patch)
tree17a65ce89271866088addce07760a1f3aa418b3d
parentb25b8019f03464d8dac0e8796aeee73cf6c45600 (diff)
Blocking shouts now blocks the testimony buttons too.
-rw-r--r--server/aoprotocol.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/server/aoprotocol.py b/server/aoprotocol.py
index 75ee824b..912c0e72 100644
--- a/server/aoprotocol.py
+++ b/server/aoprotocol.py
@@ -513,6 +513,9 @@ class AOProtocol(asyncio.Protocol):
RT#<type:string>#%
"""
+ if not self.client.area.shouts_allowed:
+ self.client.send_host_message("You cannot use the testimony buttons here!")
+ return
if self.client.is_muted: # Checks to see if the client has been muted by a mod
self.client.send_host_message("You have been muted by a moderator")
return