Fix inundation concurrency issues

This commit is contained in:
2021-01-09 20:13:02 +01:00
parent eb97a47a25
commit ed00fd73d1
2 changed files with 18 additions and 11 deletions

View File

@ -453,8 +453,8 @@ class WarningTLV(TLV):
def handle(self, user: Any, sender: Any) -> None:
user.add_message(f"warning: *A client warned you: {self.message}*"
if not user.squinnondation.no_markdown else
f"warning: A client warned you: {self.message}")
if not user.squinnondation.no_markdown else
"warning: A client warned you: {self.message}")
@staticmethod
def construct(message: str) -> "WarningTLV":