From ac569ff6050592e31058803f4ab75f3ec6c58f7b Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Thu, 22 Jan 2009 15:28:45 +0100 Subject: rss plugin: mangle email in git format Also fix a comment typo on the flyby --- data/rbot/plugins/rss.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/rbot/plugins/rss.rb b/data/rbot/plugins/rss.rb index ef46e7ff..86ec0727 100644 --- a/data/rbot/plugins/rss.rb +++ b/data/rbot/plugins/rss.rb @@ -287,7 +287,7 @@ class RSSFeedsPlugin < Plugin # We used to save the Mutex with the RssBlob, which was idiotic. And - # since Mutexes dumped in one version might not be resotrable in another, + # since Mutexes dumped in one version might not be restorable in another, # we need a few tricks to be able to restore data from other versions of Ruby # # When migrating 1.8.6 => 1.8.5, all we need to do is define an empty @@ -338,7 +338,7 @@ class RSSFeedsPlugin < Plugin make_stream(line1, line2, s) } @bot.register_filter(:git, @outkey) { |s| - author = s[:author] ? (s[:author] + " ") : "" + author = s[:author].sub(/@\S+?\s*>/, "@...>") + " " if s[:author] line1 = "%{handle}%{date}%{author}committed %{title}%{at}%{link}" make_stream(line1, nil, s, :author => author) } -- cgit v1.2.3