summaryrefslogtreecommitdiff
path: root/data/rbot/plugins
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2009-01-22 15:28:45 +0100
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2009-01-22 15:28:45 +0100
commitac569ff6050592e31058803f4ab75f3ec6c58f7b (patch)
treece9245835eef48f79b11b9f43f8452ca625f9372 /data/rbot/plugins
parent9de0a5433e12ca59ced238c99c68efad070aa7c7 (diff)
rss plugin: mangle email in git format
Also fix a comment typo on the flyby
Diffstat (limited to 'data/rbot/plugins')
-rw-r--r--data/rbot/plugins/rss.rb4
1 files 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)
}