This commit is contained in:
Firepup Sixfifty 2023-11-04 21:34:59 -05:00
parent 0199f25821
commit 69d601042e

View file

@ -274,6 +274,11 @@ 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:
try:
ircmsg.split("PRIVMSG", 1)[1]
except IndexError:
log("Fake message recieved", server, "WARN")
continue
# Format of ":[Nick]![ident]@[host|vhost] 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