fix client ping
This commit is contained in:
parent
6fc3e9d640
commit
c15cf04f89
1 changed files with 2 additions and 2 deletions
|
@ -107,9 +107,9 @@ def session(connection, client):
|
|||
connection.sendall(bytes(f":{pending} MODE {pending} +iw\r\n","UTF-8"))
|
||||
finished = True
|
||||
elif command == "PING":
|
||||
e = text.split(" ")[1]
|
||||
e = " ".join(text.split(" ")[1:])
|
||||
print("Replied to PING.")
|
||||
connection.sendall(bytes(f"PONG {e}\r\n","UTF-8"))
|
||||
connection.sendall(bytes(f":{server} PONG {server} :{e}\r\n","UTF-8"))
|
||||
elif (ready and already_set) and finished:
|
||||
if command == "JOIN":
|
||||
channels = text.split(" ")[1]
|
||||
|
|
Loading…
Add table
Reference in a new issue