forked from Firepup650/python-talk
Forgot to use new format for K lines
This commit is contained in:
parent
fc0da34e16
commit
d5a01a9ee1
1 changed files with 12 additions and 2 deletions
12
server.py
12
server.py
|
@ -311,7 +311,12 @@ Please note that this is not network level statistics.\n""".encode(
|
|||
break
|
||||
case "K":
|
||||
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")
|
||||
case _:
|
||||
writer.write(
|
||||
|
@ -481,7 +486,12 @@ async def connectServer(hostname: str, port: int):
|
|||
break
|
||||
case "K":
|
||||
cName = buffer[2:]
|
||||
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")
|
||||
case _:
|
||||
writer.write(
|
||||
|
|
Loading…
Reference in a new issue