From 1bdc4ec719412537c01b331d713ffabc3a1cc3f3 Mon Sep 17 00:00:00 2001 From: d_m Date: Tue, 23 Jan 2024 11:02:21 -0500 Subject: [PATCH] more accurate reply to PONG --- uxnbot.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/uxnbot.py b/uxnbot.py index c47d761..ed07731 100644 --- a/uxnbot.py +++ b/uxnbot.py @@ -46,13 +46,11 @@ def evaluate(msg): return result while True: - #text = irc.recv(2040) - #print(text) text = recv() m = ping_re.match(text) if m: - send(b'PONG %s' % m.group(1)) + send(b'PONG %s' % m.group(1).strip()) continue m = chan_msg_re.match(text)