]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
rss plugin: use (?) for missing item and channel titles too
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Mon, 17 Mar 2008 18:13:27 +0000 (19:13 +0100)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Mon, 17 Mar 2008 18:13:27 +0000 (19:13 +0100)
data/rbot/plugins/rss.rb

index 0cf8f1294fe3f69853a171f110bd69a68826c055..dd35978168cbf7ae328c64cbd71185f226ab4786 100644 (file)
@@ -1080,13 +1080,13 @@ class RSSFeedsPlugin < Plugin
           return nil
         end
         if rss.respond_to? :channel
-          rss.channel.title ||= "Unknown"
+          rss.channel.title ||= "(?)"
           title = rss.channel.title
         else
           title = rss.title.content
         end
         rss.items.each do |item|
-          item.title ||= "Unknown"
+          item.title ||= "(?)"
           items << item
         end
       end