From c7b0ec11f1a5110e68b7af325ebd0e053a760af3 Mon Sep 17 00:00:00 2001 From: un1c0rn Date: Mon, 3 Jun 2013 09:50:24 +0200 Subject: [PATCH] fixup dpreview feed --- mod.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mod.c b/mod.c index d35218d..cc64d3a 100644 --- a/mod.c +++ b/mod.c @@ -328,7 +328,7 @@ static const char *walk_rss(struct bio *b, const char *nick, const char *target, continue; if (!strcasecmp(name, "title")) title = get_text(cur->children); - else if (!strcasecmp(name, "link")) + else if (!strcasecmp(name, "link") && !link) link = get_text(cur->children); } if (!title) @@ -358,7 +358,7 @@ static const char *walk_rss(struct bio *b, const char *nick, const char *target, continue; if (!strcasecmp(name, "title")) cur_title = get_text(cur->children); - else if (!strcasecmp(name, "link")) + else if (!strcasecmp(name, "link") && !cur_link) cur_link = get_text(cur->children); } if (!cur_title) -- 2.11.4.GIT