forked from swee/MeowNex
Update sweebot.py
This commit is contained in:
parent
56e37d5f67
commit
54ca5801e7
1 changed files with 1 additions and 2 deletions
|
@ -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())
|
||||
|
|
Loading…
Reference in a new issue