forked from Firepup650/FireBot
typo, missed ping check, and correct some terminology
This commit is contained in:
parent
40d38f3046
commit
d2bd195764
1 changed files with 3 additions and 3 deletions
|
@ -303,7 +303,7 @@ def main():
|
||||||
else:
|
else:
|
||||||
print(raw.lazy_decode(), sep="\n")
|
print(raw.lazy_decode(), sep="\n")
|
||||||
if ircmsg.find("PRIVMSG") != -1:
|
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:]
|
name = ircmsg.split("!", 1)[0][1:]
|
||||||
helpErr = False
|
helpErr = False
|
||||||
if (name.startswith("saxjax") and server == "efnet") or (
|
if (name.startswith("saxjax") and server == "efnet") or (
|
||||||
|
@ -487,12 +487,12 @@ def main():
|
||||||
sendmsg(f"[QUOTE] {sel}", chan)
|
sendmsg(f"[QUOTE] {sel}", chan)
|
||||||
mm.close()
|
mm.close()
|
||||||
else:
|
else:
|
||||||
if ircmsg.find("PING") != -1:
|
if ircmsg.startswith("PING "):
|
||||||
ping(ircmsg)
|
ping(ircmsg)
|
||||||
if ircmsg.find("Closing Link") != -1:
|
if ircmsg.find("Closing Link") != -1:
|
||||||
exit("I got killed :'(")
|
exit("I got killed :'(")
|
||||||
if ircmsg.find("ERROR :Ping timeout: ") != -1:
|
if ircmsg.find("ERROR :Ping timeout: ") != -1:
|
||||||
exit("Ping timeout]")
|
exit("Ping timeout")
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue