summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--export_xml.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/export_xml.c b/export_xml.c
index 91f5af0..1f851d0 100644
--- a/export_xml.c
+++ b/export_xml.c
@@ -44,8 +44,8 @@ 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) {
+ /* Skip mapped nicks and <NULL> (filtered nicks eg. bots). */
+ if(user->real_user != NULL || strcmp(user->nick, "<NULL>") == 0) {
user = user->next;
continue;
}