summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2009-09-05 22:06:03 +0200
committerJon Bergli Heier <snakebite@jvnv.net>2009-09-05 22:06:03 +0200
commit67556c524e9a9c16f0a786c3ac5c4e46ce50a4bd (patch)
treec1d63f838bc21eb857c3fdeac1092c0b8388c0ff
parent7f818f303fec745285b3b4f6501bf183ec199fcb (diff)
Skip <NULL> when exporting users.
-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);