From 1b252ca2c7fd48541265f9f42576fee5d0ccdcaf Mon Sep 17 00:00:00 2001 From: jkhsjdhjs Date: Tue, 30 Jan 2024 22:24:52 +0000 Subject: [PATCH] Revert "fix accidental logging of understood messages" This reverts commit e709a2ade1ff327708dbff9f6784d721875353d8. --- bert.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bert.py b/bert.py index cfaa8a6..9b7a6f3 100755 --- a/bert.py +++ b/bert.py @@ -280,11 +280,11 @@ def command_loop(): if ircmsg.find("PING :") != -1: pingstring = ircmsg.strip("PING :") ping(pingstring) - elif ircmsg.find("ERROR :Closing link") != -1: + if ircmsg.find("ERROR :Closing link") != -1: print("Error. Lost Connection. Giving up!") os._exit(1) break - elif ircmsg.find(" PRIVMSG ") != -1: + if ircmsg.find(" PRIVMSG ") != -1: ircnick = ircmsg.split("!")[0][1:] channel = ircmsg.split(" PRIVMSG ", 1)[-1].split(" :", 1)[0] msg = ircmsg.split(channel+" :", 1)[1]