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
14
server.py
14
server.py
|
@ -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:]
|
||||||
G.killList[cName.lower()] = 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(
|
||||||
|
|
Loading…
Reference in a new issue