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())