From 08a28214b856d7a3c3587337e30eb46384918743 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Fri, 26 Aug 2011 17:16:13 +0200 Subject: [PATCH] RSS: bug fix. (Bad import from gribble?) --- plugins/RSS/plugin.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/RSS/plugin.py b/plugins/RSS/plugin.py index 53a1ca2b7..15acb4b83 100644 --- a/plugins/RSS/plugin.py +++ b/plugins/RSS/plugin.py @@ -198,15 +198,19 @@ class RSS(callbacks.Plugin): v = False break return v - for channel in channels: + fnor channel in channels: if len(oldheadlines) == 0: channelnewheadlines = newheadlines[:self.registryValue('initialAnnounceHeadlines', channel)] + else: + channelnewheadlines = newheadlines[:] whitelist = self.registryValue('keywordWhitelist', channel) blacklist = self.registryValue('keywordBlacklist', channel) if len(whitelist) != 0: channelnewheadlines = filter(filter_whitelist, channelnewheadlines) if len(blacklist) != 0: channelnewheadlines = filter(filter_blacklist, channelnewheadlines) + if len(channelnewheadlines) == 0: + return bold = self.registryValue('bold', channel) sep = self.registryValue('headlineSeparator', channel) prefix = self.registryValue('announcementPrefix', channel)