From d6c2fcddfdefedb68222e9c4163a765fe56dc8e9 Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Sun, 6 Sep 2009 00:23:31 +0200 Subject: export_xml: Add continue after setting user when checking for the user. export_xml: Include string.h for strcmp. --- export_xml.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/export_xml.c b/export_xml.c index 1b6e88c..f38a803 100644 --- a/export_xml.c +++ b/export_xml.c @@ -1,5 +1,6 @@ #include #include +#include #include "export_xml.h" #include "word.h" @@ -38,6 +39,7 @@ int export_xml(struct channel_t *channel, struct user_t *users) { /* Skip (filtered nicks eg. bots). */ if(strcmp(user->nick, "") == 0) { user = user->next; + continue; } char s[0xf]; xmlNodePtr user_node = xmlNewChild(users_node, NULL, "user", NULL); -- cgit v1.2.3