diff --git a/sweebot.py b/sweebot.py index 9814b65..8cae65b 100644 --- a/sweebot.py +++ b/sweebot.py @@ -889,12 +889,14 @@ while True: break else: try: - if i.split(" ")[0][0] == "#" and (len(i.split(" ")) == 1 or not i.split(" ")[0][1] != "#"): + if i.split(" ")[0][0] == "#" and len(i.split(" ")) == 1: print("Found title: " + i) title = True multiline("(" + nick + f") " + i[2:], channel) break except: + print(i) + print(traceback.format_exc()) pass if not title and not redirected: multiline("(" + nick + ") [No title found]", channel)