summaryrefslogtreecommitdiff
path: root/export_xml.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 /export_xml.c
parentd6c2fcddfdefedb68222e9c4163a765fe56dc8e9 (diff)
Count the number of total characters per user.
Diffstat (limited to 'export_xml.c')
-rw-r--r--export_xml.c2
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);