Update sweebot.py
This commit is contained in:
parent
a37f9e2bf8
commit
68c9441911
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ class config:
|
||||||
print(self.chansettings(chan))
|
print(self.chansettings(chan))
|
||||||
if self.chansettings(chan) == []:
|
if self.chansettings(chan) == []:
|
||||||
print("[!!!] Channel doesn't exist in config")
|
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:
|
else:
|
||||||
self.database.execute("UPDATE chans SET FLAGS = ? WHERE chan = ?", [",".join(flags),chan])
|
self.database.execute("UPDATE chans SET FLAGS = ? WHERE chan = ?", [",".join(flags),chan])
|
||||||
self.conn.commit()
|
self.conn.commit()
|
||||||
|
|
Loading…
Reference in a new issue