Committed the fix for the bug mentioned by Flumminator.

This commit is contained in:
Jeremy Fincher 2004-01-14 15:46:12 +00:00
parent 0ddb356c0b
commit d18d6b63c7
1 changed files with 2 additions and 5 deletions

View File

@ -260,11 +260,8 @@ class ChannelDB(plugins.ChannelDBHandler,
except KeyError:
return
cursor.execute("""INSERT INTO user_stats VALUES (
NULL, %s, %s, %s, %s, %s,
%s, %s, 1, %s,
0, 0, 0, 0, 0, 0, 0)""",
id, int(time.time()), s,
smileys, frowns, chars, words, int(isAction))
NULL, %s, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0)""", id)
cursor.execute("""UPDATE user_stats SET
last_seen=%s, last_msg=%s, chars=chars+%s,
words=words+%s, msgs=msgs+1,