Blocking shouts now blocks the testimony buttons too.

This commit is contained in:
Cerapter 2018-08-15 19:50:41 +02:00
parent b25b8019f0
commit 8c859398f1

View File

@ -513,6 +513,9 @@ class AOProtocol(asyncio.Protocol):
RT#<type:string>#% 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 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") self.client.send_host_message("You have been muted by a moderator")
return return