summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--export_xml.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/export_xml.c b/export_xml.c
index c4f2697..1b6e88c 100644
--- a/export_xml.c
+++ b/export_xml.c
@@ -35,6 +35,10 @@ int export_xml(struct channel_t *channel, struct user_t *users) {
struct user_t *user = &users[u];
/* Iterate while we have a user (nick is non-NULL). */
while(user && user->nick) {
+ /* Skip <NULL> (filtered nicks eg. bots). */
+ if(strcmp(user->nick, "<NULL>") == 0) {
+ user = user->next;
+ }
char s[0xf];
xmlNodePtr user_node = xmlNewChild(users_node, NULL, "user", NULL);