From 54ca5801e78fea4aff70eb860e68654dcda82f7c Mon Sep 17 00:00:00 2001 From: Swee Date: Sat, 12 Oct 2024 14:41:06 -0700 Subject: [PATCH] Update sweebot.py --- sweebot.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sweebot.py b/sweebot.py index a8e8a84..c858612 100644 --- a/sweebot.py +++ b/sweebot.py @@ -36,8 +36,7 @@ class config: if self.chansettings(chan) == []: print("[!!!] Channel doesn't exist in config") self.database.execute("INSERT INTO chans (chan, flags) values(?, '+config');", [chan]) - flag = self.chansettings(chan) + flags - self.database.execute("UPDATE chans SET FLAGS = ? WHERE chan = ?", [",".join(flag),chan]) + self.database.execute("UPDATE chans SET FLAGS = ? WHERE chan = ?", [",".join(flags),chan]) self.conn.commit() except: print(traceback.format_exc())