diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2009-09-06 16:53:24 +0200 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2009-09-06 16:53:24 +0200 |
commit | 27d37093ab87c2a1b8e846b4f4df83bf19ceba4c (patch) | |
tree | ed11a87c1b50b8f76fb569018ba51d08f068b507 /export_xml.c | |
parent | d6c2fcddfdefedb68222e9c4163a765fe56dc8e9 (diff) |
Count the number of total characters per user.
Diffstat (limited to 'export_xml.c')
-rw-r--r-- | export_xml.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/export_xml.c b/export_xml.c index f38a803..db1d592 100644 --- a/export_xml.c +++ b/export_xml.c @@ -47,6 +47,8 @@ int export_xml(struct channel_t *channel, struct user_t *users) { xmlNewChild(user_node, NULL, "nick", user->nick); snprintf(s, 0xf, "%d", user->words); xmlNewChild(user_node, NULL, "words", s); + snprintf(s, 0xf, "%d", user->characters); + xmlNewChild(user_node, NULL, "characters", s); /* Add lines for this user. */ xmlNodePtr lines_node = xmlNewChild(user_node, NULL, "lines", NULL); |