diff --git a/sweebot.py b/sweebot.py index 52e4b86..91c556c 100644 --- a/sweebot.py +++ b/sweebot.py @@ -39,7 +39,7 @@ class config: print(self.chansettings(chan)) if self.chansettings(chan) == []: print("[!!!] Channel doesn't exist in config") - self.database.execute("INSERT INTO chans (chan, flags) values(?, ?);", [chan, ["+config"] + ",".join(flags)]) + self.database.execute("INSERT INTO chans (chan, flags) values(?, ?);", [chan, "+config" + ",".join(flags)]) else: self.database.execute("UPDATE chans SET FLAGS = ? WHERE chan = ?", [",".join(flags),chan]) self.conn.commit()