diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2008-10-16 12:55:24 +0200 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2008-10-16 12:55:24 +0200 |
commit | b7aa679178b325213224e48a7252ae3daabe82a9 (patch) | |
tree | bcdfc1010f8583e7dfba7d512270994bebf4eafa | |
parent | 1fd8cc0f4129f049e43f5b46b77a49ff8c6134cb (diff) |
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.
-rw-r--r-- | data/rbot/plugins/rss.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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| |