Fix edge-cases with "PING"
This commit is contained in:
parent
ae3dbc23a3
commit
1555ea16c0
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue