X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=data%2Frbot%2Fplugins%2Frss.rb;h=9e85b416bb6bc6db5a50994008653e29a13c5087;hb=41ea4232df0ed0b3f922b0476444ca8e38f3301f;hp=f0224a9467727ba9b54c3d7f6ed62bce2e0fe104;hpb=1fd8cc0f4129f049e43f5b46b77a49ff8c6134cb;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git 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|