diff --git a/sweebot.py b/sweebot.py index 8fe30f1..638cbed 100644 --- a/sweebot.py +++ b/sweebot.py @@ -890,10 +890,10 @@ while True: else: try: print(i) - if i.split(" ")[0][0] == "#" and len(i.split(" ")) == 1: + if i.strip().split(" ")[0][0] == "#" and len(i.strip().split(" ")) == 1: print("Found title: " + i) title = True - multiline("(" + nick + f") " + i[2:], channel) + multiline("(" + nick + f") " + i.strip()[2:].strip(), channel) break except: print(traceback.format_exc())