[Tell] Actually write changes to disk

master
Sfan5 2013-11-17 19:43:39 +01:00
parent 4832424cac
commit 5046faedd8
1 changed files with 3 additions and 0 deletions

View File

@ -32,6 +32,7 @@ def tell(phenny, input):
c = db.cursor() c = db.cursor()
c.execute("INSERT INTO tell VALUES (?,?,?)", d) c.execute("INSERT INTO tell VALUES (?,?,?)", d)
c.close() c.close()
db.commit()
db.close() db.close()
response = "I'll pass that on when %s is around" % target response = "I'll pass that on when %s is around" % target
@ -52,6 +53,7 @@ def checktell(phenny, input):
c = db.cursor() c = db.cursor()
c.execute("DELETE FROM tell WHERE nick = ? AND channel = ? AND msg = ?", e) c.execute("DELETE FROM tell WHERE nick = ? AND channel = ? AND msg = ?", e)
c.close() c.close()
db.commit()
db.close() db.close()
return return
@ -80,6 +82,7 @@ while True:
break break
tell_list.append(e) tell_list.append(e)
c.close() c.close()
db.commit()
db.close() db.close()
if __name__ == '__main__': if __name__ == '__main__':