From 161d764e7e881836d5618832b2cdd2b34f28c01b Mon Sep 17 00:00:00 2001 From: swee Date: Tue, 10 Dec 2024 10:25:15 -0800 Subject: [PATCH] Update server.py --- server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server.py b/server.py index 77dbf19..b2dfd0b 100644 --- a/server.py +++ b/server.py @@ -111,8 +111,8 @@ def session(connection, client): finished = True elif command == "PING": e = text.split(" ")[1] - print("Replying with \"" + str([f":{server} PONG :{e}\r\n"]) + "\"") - connection.sendall(bytes(f":{server} PONG {e}\r\n","UTF-8")) + print("Replying with \"" + str([f":{server} PONG {server} :{e}\r\n"]) + "\"") + 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]