last fix for tell.py

This commit is contained in:
Ryan Hitchman 2010-03-16 15:35:52 -06:00
parent 98238f0dc5
commit 3e1755b564
1 changed files with 2 additions and 2 deletions

View File

@ -52,7 +52,7 @@ def showtells(inp, nick='', chan='', pm=None, db=None):
db_init(db) db_init(db)
tells = get_tells(db, nick, chan) tells = get_tells(db, nick)
if not tells: if not tells:
pm("You have no pending tells.") pm("You have no pending tells.")
@ -64,7 +64,7 @@ def showtells(inp, nick='', chan='', pm=None, db=None):
pm("%s said %s ago in %s: %s" % (user_from, reltime, chan, message)) pm("%s said %s ago in %s: %s" % (user_from, reltime, chan, message))
db.execute("delete from tell where user_to=lower(?)", db.execute("delete from tell where user_to=lower(?)",
(nick, chan)) (nick,))
db.commit() db.commit()