From d2bd195764e27af248806b4b675d48194c15ce03 Mon Sep 17 00:00:00 2001 From: Firepup Sixfifty Date: Fri, 3 Nov 2023 16:49:27 -0500 Subject: [PATCH] typo, missed ping check, and correct some terminology --- ircbot.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ircbot.py b/ircbot.py index 085ba45..4e6f13f 100644 --- a/ircbot.py +++ b/ircbot.py @@ -303,7 +303,7 @@ def main(): else: print(raw.lazy_decode(), sep="\n") if ircmsg.find("PRIVMSG") != -1: - # Format of ":[Nick]!~[hostname]@[IP Address] PRIVMSG [channel] :[message]” + # Format of ":[Nick]![ident]@[host|vhost] PRIVMSG [channel] :[message]” name = ircmsg.split("!", 1)[0][1:] helpErr = False if (name.startswith("saxjax") and server == "efnet") or ( @@ -487,12 +487,12 @@ def main(): sendmsg(f"[QUOTE] {sel}", chan) mm.close() else: - if ircmsg.find("PING") != -1: + if ircmsg.startswith("PING "): ping(ircmsg) if ircmsg.find("Closing Link") != -1: exit("I got killed :'(") if ircmsg.find("ERROR :Ping timeout: ") != -1: - exit("Ping timeout]") + exit("Ping timeout") except KeyboardInterrupt: pass