diff --git a/sweebot.py b/sweebot.py index dd45e42..739d1f2 100644 --- a/sweebot.py +++ b/sweebot.py @@ -889,7 +889,7 @@ while True: break else: try: - if i.split(" ")[0][0] == "#" and not i.split(" ")[0][1] == "#": + if i.split(" ")[0][0] == "#" and (len(i.split(" ")) == 1 or not i.split(" ")[0][1] != "#"): print("Found title: " + i) title = True multiline("(" + nick + f") " + i[2:], channel)