diff --git a/server.py b/server.py index a49b09b..6403db2 100644 --- a/server.py +++ b/server.py @@ -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":