diff options
-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); |