From 56e37d5f67196643b2b5ee72c7eb3ca68fccc24c Mon Sep 17 00:00:00 2001 From: Swee Date: Sat, 12 Oct 2024 14:39:58 -0700 Subject: [PATCH] fix config command --- sweebot.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sweebot.py b/sweebot.py index 07c4c87..a8e8a84 100644 --- a/sweebot.py +++ b/sweebot.py @@ -498,9 +498,13 @@ while True: if i[0] == "+": if "-" + i[1:] in flag: flag[flag.index("-" + i[1:])] = i + else: + flag.append(i) elif i[0] == "-": if "+" + i[1:] in flag: flag[flag.index("+" + i[1:])] = i + else: + flag.append(i) else: multiline(nick + ": flag name should begin with + or -") break