summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2010-06-02 12:27:24 +0200
committerJon Bergli Heier <snakebite@jvnv.net>2010-06-02 12:27:24 +0200
commitd7523bb847355ba5eec069b8a96d50fba8d1cd33 (patch)
tree056d55b92b259107791851f6e1ab28e250593ca5
parent72965bda2ea93d56e8e0b443826304192e22b5cc (diff)
Fixed writing user data.
-rw-r--r--export_xml.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/export_xml.c b/export_xml.c
index daebe14..b16ff41 100644
--- a/export_xml.c
+++ b/export_xml.c
@@ -63,27 +63,27 @@ int export_xml(struct channel_t *channel, struct user_t *users) {
xmlTextWriterEndElement(writer);
xmlTextWriterStartElement(writer, (const xmlChar*)"words");
- xmlTextWriterWriteFormatString(writer, "%llu", users->words);
+ xmlTextWriterWriteFormatString(writer, "%llu", user->words);
xmlTextWriterEndElement(writer);
xmlTextWriterStartElement(writer, (const xmlChar*)"characters");
- xmlTextWriterWriteFormatString(writer, "%llu", users->words);
+ xmlTextWriterWriteFormatString(writer, "%llu", user->characters);
xmlTextWriterEndElement(writer);
xmlTextWriterStartElement(writer, (const xmlChar*)"kicks");
- xmlTextWriterWriteFormatString(writer, "%llu", users->words);
+ xmlTextWriterWriteFormatString(writer, "%llu", user->kicks);
xmlTextWriterEndElement(writer);
xmlTextWriterStartElement(writer, (const xmlChar*)"kicked");
- xmlTextWriterWriteFormatString(writer, "%llu", users->words);
+ xmlTextWriterWriteFormatString(writer, "%llu", user->kicked);
xmlTextWriterEndElement(writer);
xmlTextWriterStartElement(writer, (const xmlChar*)"monolog_lines");
- xmlTextWriterWriteFormatString(writer, "%llu", users->words);
+ xmlTextWriterWriteFormatString(writer, "%llu", user->monolog_lines);
xmlTextWriterEndElement(writer);
xmlTextWriterStartElement(writer, (const xmlChar*)"monologs");
- xmlTextWriterWriteFormatString(writer, "%llu", users->words);
+ xmlTextWriterWriteFormatString(writer, "%llu", user->monologs);
xmlTextWriterEndElement(writer);
/*xmlNewChild(user_node, NULL, (const xmlChar*)"nick", (xmlChar*)user->nick);
@@ -110,7 +110,7 @@ int export_xml(struct channel_t *channel, struct user_t *users) {
//snprintf(s, 0xf, "%lu", user->lines[h*4 + q]);
//xmlNewChild(hour_node, NULL, (const xmlChar*)"quarter", (const xmlChar*)s);
xmlTextWriterStartElement(writer, (const xmlChar*)"quarter");
- xmlTextWriterWriteFormatString(writer, "%lu", channel->hours[h*4 + q]);
+ xmlTextWriterWriteFormatString(writer, "%lu", user->lines[h*4 + q]);
xmlTextWriterEndElement(writer);
}
xmlTextWriterEndElement(writer);