Update server.py
All checks were successful
/ check (push) Successful in 25s

This commit is contained in:
Nova Cat 2025-01-22 00:39:03 -08:00
parent 15ab96dc58
commit 09421ee792

View file

@ -273,8 +273,11 @@ def session(connection, client, ip, ssl=False):
connection.sendall(bytes(f":{pending} MODE {pending} +iw\r\n","UTF-8"))
finished = True
elif command == "PING":
e = text.split(" ")[1]
connection.sendall(bytes(f":{server} PONG {server} :{e}\r\n","UTF-8"))
try:
e = text.split(" ")[1]
connection.sendall(bytes(f":{server} PONG {server} :{e}\r\n","UTF-8"))
except:
connection.sendall(bytes(f":{server} PONG {server}\r\n","UTF-8"))
elif command == "LIST":
connection.sendall(bytes(f":{server} 321 {pending} Channel :Users Name\r\n","UTF-8"))
for key, value in topic_list.items():