summaryrefslogtreecommitdiff
path: root/export_xml.c
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2010-10-27 19:00:54 +0200
committerJon Bergli Heier <snakebite@jvnv.net>2010-10-27 19:02:44 +0200
commit78d37f490afd32c3eb6dcdb7375af98aee2f0d1f (patch)
tree11a4d7aa5561ad3fd23a70f7b5a038026c7ec271 /export_xml.c
parenta1039148b6e06df5af790846087b7837c60a88b9 (diff)
Skip mapped nicks in export_xml().HEADmaster
Diffstat (limited to 'export_xml.c')
-rw-r--r--export_xml.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/export_xml.c b/export_xml.c
index 1bed18b..212b463 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;
}