fix accidental logging of understood messages
This commit is contained in:
parent
359407187e
commit
e709a2ade1
4
bert.py
4
bert.py
|
@ -280,11 +280,11 @@ def command_loop():
|
|||
if ircmsg.find("PING :") != -1:
|
||||
pingstring = ircmsg.strip("PING :")
|
||||
ping(pingstring)
|
||||
if ircmsg.find("ERROR :Closing link") != -1:
|
||||
elif ircmsg.find("ERROR :Closing link") != -1:
|
||||
print("Error. Lost Connection. Giving up!")
|
||||
os._exit(1)
|
||||
break
|
||||
if ircmsg.find(" PRIVMSG ") != -1:
|
||||
elif ircmsg.find(" PRIVMSG ") != -1:
|
||||
ircnick = ircmsg.split("!")[0][1:]
|
||||
channel = ircmsg.split(" PRIVMSG ", 1)[-1].split(" :", 1)[0]
|
||||
msg = ircmsg.split(channel+" :", 1)[1]
|
||||
|
|
Loading…
Reference in New Issue
Block a user