correction: update to use the seen_user db

This commit is contained in:
cybojenix 2013-08-07 15:53:21 +01:00
parent d3429f3297
commit 3204d15bde
2 changed files with 2 additions and 24 deletions

View file

@ -22,7 +22,7 @@ def seen_sieve(paraml, input=None, db=None, bot=None):
if not db_ready:
db_init(db)
# keep private messages private
if input.chan[:1] == "#":
if input.chan[:1] == "#" and not re.findall('^s/.*/.*/$', input.msg.lower()):
db.execute("insert or replace into seen_user(name, time, quote, chan, host)"
"values(?,?,?,?,?)", (input.nick.lower(), time.time(), input.msg,
input.chan, input.mask))