summaryrefslogtreecommitdiff
path: root/data/rbot/plugins
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-03-12 02:28:28 +0100
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-03-12 02:28:46 +0100
commitf8904942be535a70d8d2fa1eec710b6564fc2817 (patch)
treed8e71c2ba7b6bc0e4073b13acbfbc8073ed4036d /data/rbot/plugins
parent8fbdb921f39e2262f01c1011d0c6c8d5c885ad5a (diff)
rss plugin: show author for trac, but clobber email
Diffstat (limited to 'data/rbot/plugins')
-rw-r--r--data/rbot/plugins/rss.rb3
1 files changed, 2 insertions, 1 deletions
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