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

This commit is contained in:
Nova Cat 2025-01-25 20:36:41 -08:00
parent 4a3ee0e6f0
commit 4a95db64d0

View file

@ -289,7 +289,8 @@ def session(connection, client, ip, isssl=False):
elif command == "PING":
try:
e = text.split(" ")[1]
connection.sendall(bytes(f":{server} PONG {server} :{e}\r\n","UTF-8"))
e = f":{e}" if e[0] != ":" else e
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 == "MOTD":