Fix edge-cases with "PING"

This commit is contained in:
Firepup Sixfifty 2023-10-23 17:50:21 -05:00
parent ae3dbc23a3
commit 1555ea16c0

View file

@ -108,7 +108,7 @@ def joinserver():
if ircmsg.find("PING :") != -1:
# pong = "PONG :" + input("Ping?:") + "\n"
# pong = pong.replace("\\\\", "\\")
pong = f"PONG :{ircmsg.split(':')[1]}\n"
pong = f"PONG :{ircmsg.split('PING :')[1]}\n"
print(pong, end="")
ircsock.send(bytes(pong, e))
if ircmsg.find("Closing Link") != -1: