💩 code

This commit is contained in:
2021-01-08 18:50:10 +01:00
parent 380f808e50
commit 369befcd79
2 changed files with 20 additions and 18 deletions

View File

@ -173,12 +173,9 @@ class HelloTLV(TLV):
user.send_packet(sender, Packet.construct(WarningTLV.construct(
f"You were known as the ID {sender.id}, but you declared that you have the ID {self.source_id}.")))
user.add_system_message(f"A client known as the id {sender.id} declared that it uses "
f"the id {self.source_id}.")
f"the id {self.source_id}.")
sender.id = self.source_id
if self.source_id == user.id:
sender.marked_as_banned = True
if not sender.active:
sender.id = self.source_id # The sender we are given misses an id
time_hl = time.time()