Forgot to use new format for K lines

This commit is contained in:
Firepup Sixfifty 2024-07-16 19:07:02 +00:00
parent fc0da34e16
commit d5a01a9ee1
Signed by: Firepup650
SSH key fingerprint: SHA256:U0Zp8EhEe3CMqFSrC79CqatzaEiL4sjta80/RSX2XrY

View file

@ -311,7 +311,12 @@ Please note that this is not network level statistics.\n""".encode(
break break
case "K": case "K":
cName = buffer[2:] cName = buffer[2:]
G.killList[cName] = True if G.clientsConnected[cName.lower()] == G.remoteID:
G.killList[cName.lower()] = True
else:
G.servers[G.clientsConnected[cName.lower()]][
cName.lower()
] = True
writer.write(b"I Mmm... Blood\n") writer.write(b"I Mmm... Blood\n")
case _: case _:
writer.write( writer.write(
@ -481,7 +486,12 @@ async def connectServer(hostname: str, port: int):
break break
case "K": case "K":
cName = buffer[2:] cName = buffer[2:]
if G.clientsConnected[cName.lower()] == G.remoteID:
G.killList[cName.lower()] = True G.killList[cName.lower()] = True
else:
G.servers[G.clientsConnected[cName.lower()]][
cName.lower()
] = True
writer.write(b"I Mmm... Blood\n") writer.write(b"I Mmm... Blood\n")
case _: case _:
writer.write( writer.write(