Updated code

This commit is contained in:
neersighted 2012-03-31 09:22:06 -07:00
parent 62b3e84ca0
commit 1e13e8e263

View file

@ -25,7 +25,7 @@ def get_tells(db, user_to):
@hook.singlethread @hook.singlethread
@hook.event('PRIVMSG') @hook.event('PRIVMSG')
def tellinput(paraml, input=None, db=None, bot=None): def tellinput(paraml, input=None, notice=None, db=None, bot=None):
if 'showtells' in input.msg.lower(): if 'showtells' in input.msg.lower():
return return
@ -45,7 +45,7 @@ def tellinput(paraml, input=None, db=None, bot=None):
db.execute("delete from tell where user_to=lower(?) and message=?", db.execute("delete from tell where user_to=lower(?) and message=?",
(input.nick, message)) (input.nick, message))
db.commit() db.commit()
input.notice(reply) notice(reply)
@hook.command(autohelp=False) @hook.command(autohelp=False)