summaryrefslogtreecommitdiff
path: root/user.c
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2009-09-06 16:53:24 +0200
committerJon Bergli Heier <snakebite@jvnv.net>2009-09-06 16:53:24 +0200
commit27d37093ab87c2a1b8e846b4f4df83bf19ceba4c (patch)
treeed11a87c1b50b8f76fb569018ba51d08f068b507 /user.c
parentd6c2fcddfdefedb68222e9c4163a765fe56dc8e9 (diff)
Count the number of total characters per user.
Diffstat (limited to 'user.c')
-rw-r--r--user.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/user.c b/user.c
index edb8fb3..ce6f6fc 100644
--- a/user.c
+++ b/user.c
@@ -33,7 +33,7 @@ struct user_t *user_get(char *_nick) {
user->hash = hash;
user->nick = strdup(nick);
memset(user->lines, 0, 24*4 * sizeof(unsigned long));
- user->words = 0;
+ user->words = user->characters = 0;
user->next = NULL;
}