From 27d37093ab87c2a1b8e846b4f4df83bf19ceba4c Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Sun, 6 Sep 2009 16:53:24 +0200 Subject: Count the number of total characters per user. --- export_xml.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'export_xml.c') 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); -- cgit v1.2.3