Update server.py

This commit is contained in:
Nova Cat 2024-12-10 10:25:15 -08:00
parent a1e6733ee1
commit 161d764e7e

View file

@ -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]