]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
rss plugin: display author if present in default format
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Tue, 4 Dec 2007 20:44:19 +0000 (20:44 +0000)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Tue, 4 Dec 2007 20:44:19 +0000 (20:44 +0000)
data/rbot/plugins/rss.rb

index 7f645c81b1dfd01044bc4bac80298b1ded35c50e..2d72312af88ba4fb8be1683e4316587d70e59857 100644 (file)
@@ -903,6 +903,7 @@ class RSSFeedsPlugin < Plugin
       line1 = "#{handle}#{date}#{dept}#{title}#{at}#{link} (posted by #{author}#{sec})"\r
     else\r
       line1 = "#{handle}#{date}#{title}#{at}#{link}"\r
+      line1 << " (by #{author})" if author\r
     end\r
     places.each { |loc|\r
       @bot.say loc, line1, :overlong => :truncate\r