From f8904942be535a70d8d2fa1eec710b6564fc2817 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Wed, 12 Mar 2008 02:28:28 +0100 Subject: rss plugin: show author for trac, but clobber email --- data/rbot/plugins/rss.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/data/rbot/plugins/rss.rb b/data/rbot/plugins/rss.rb index 3b8e8c7d..4cee9ef5 100644 --- a/data/rbot/plugins/rss.rb +++ b/data/rbot/plugins/rss.rb @@ -938,7 +938,8 @@ class RSSFeedsPlugin < Plugin when 'gmane' line1 = "#{handle}#{date}Message #{title} sent by #{author}. #{desc}" when 'trac' - line1 = "#{handle}#{date}#{title} @ #{link}" + author = author.sub(/@\S+?\s*>/, "@...>") + ": " if author + line1 = "#{handle}#{date}#{author}#{title} @ #{link}" unless item.title =~ /^(?:Changeset \[(?:[\da-f]+)\]|\(git commit\))/ line2 = "#{handle}#{date}#{desc}" end -- cgit v1.2.3