From b7aa679178b325213224e48a7252ae3daabe82a9 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Thu, 16 Oct 2008 12:55:24 +0200 Subject: rss plugin: 'headlines' uses date if handle not present When the feed handle is empty or not used (e.g. during rss show), the headlines output filter will display the date before the title. --- data/rbot/plugins/rss.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/rbot/plugins/rss.rb b/data/rbot/plugins/rss.rb index f0224a94..9e85b416 100644 --- a/data/rbot/plugins/rss.rb +++ b/data/rbot/plugins/rss.rb @@ -315,7 +315,7 @@ class RSSFeedsPlugin < Plugin def define_filters @outkey = :"rss.out" @bot.register_filter(:headlines, @outkey) { |s| - line1 = "%{handle}%{title}" + line1 = (s[:handle].empty? ? "%{date}" : "%{handle}") << "%{title}" make_stream(line1, nil, s) } @bot.register_filter(:blog, @outkey) { |s| -- cgit v1.2.3