diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2009-09-06 00:23:31 +0200 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2009-09-06 00:23:31 +0200 |
commit | d6c2fcddfdefedb68222e9c4163a765fe56dc8e9 (patch) | |
tree | 11f28b1766909477addc366cdbd40508c85c6246 | |
parent | 67556c524e9a9c16f0a786c3ac5c4e46ce50a4bd (diff) |
export_xml: Add continue after setting user when checking for the <NULL> user.
export_xml: Include string.h for strcmp.
-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 1b6e88c..f38a803 100644 --- a/export_xml.c +++ b/export_xml.c @@ -1,5 +1,6 @@ #include <libxml/tree.h> #include <libxml/xmlsave.h> +#include <string.h> #include "export_xml.h" #include "word.h" @@ -38,6 +39,7 @@ int export_xml(struct channel_t *channel, struct user_t *users) { /* Skip <NULL> (filtered nicks eg. bots). */ if(strcmp(user->nick, "<NULL>") == 0) { user = user->next; + continue; } char s[0xf]; xmlNodePtr user_node = xmlNewChild(users_node, NULL, "user", NULL); |