Made feelings.py use the data/ dir, updated other plugins to not use input.*

This commit is contained in:
neersighted 2012-03-31 16:01:23 -07:00
parent 0762018677
commit 1c374114ec
5 changed files with 113 additions and 100 deletions

View file

@ -25,13 +25,13 @@ def get_tells(db, user_to):
@hook.singlethread
@hook.event('PRIVMSG')
def tellinput(paraml, input=None, notice=None, db=None, bot=None):
def tellinput(paraml, input=None, notice=None, db=None, bot=None, nick=None):
if 'showtells' in input.msg.lower():
return
db_init(db)
tells = get_tells(db, input.nick)
tells = get_tells(db, nick)
if tells:
user_from, message, time, chan = tells[0]
@ -43,7 +43,7 @@ def tellinput(paraml, input=None, notice=None, db=None, bot=None):
reply += " (+%d more, .showtells to view)" % (len(tells) - 1)
db.execute("delete from tell where user_to=lower(?) and message=?",
(input.nick, message))
(nick, message))
db.commit()
notice(reply)