]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/blobdiff - data/rbot/plugins/rss.rb
* (lastfm) change the interface for associating an irc nick with a lastfm user. this...
[user/henk/code/ruby/rbot.git] / data / rbot / plugins / rss.rb
index f0224a9467727ba9b54c3d7f6ed62bce2e0fe104..9e85b416bb6bc6db5a50994008653e29a13c5087 100644 (file)
@@ -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|