diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2008-10-16 12:07:41 +0200 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2008-10-16 12:08:01 +0200 |
commit | edd96f72c05cda50e43c088f26c4a92f0e1fd46a (patch) | |
tree | 68bec7c446ea04c917b215e2d35e12ab98274484 /data/rbot | |
parent | c3a762a2dbe70ffdd33455f0f82c7321548fc732 (diff) |
rss plugin: use %{at} instead of @ in output filters
Diffstat (limited to 'data/rbot')
-rw-r--r-- | data/rbot/plugins/rss.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/data/rbot/plugins/rss.rb b/data/rbot/plugins/rss.rb index 7407655e..c4814cf5 100644 --- a/data/rbot/plugins/rss.rb +++ b/data/rbot/plugins/rss.rb @@ -329,13 +329,13 @@ class RSSFeedsPlugin < Plugin make_stream(line1, line2, s, :author => author, :abt => abt) } @bot.register_filter(:news, @outkey) { |s| - line1 = "%{handle}%{date}%{title} @ %{link}" % s + line1 = "%{handle}%{date}%{title}%{at}%{link}" % s line2 = "%{handle}%{date}%{desc}" % s make_stream(line1, line2, s) } @bot.register_filter(:git, @outkey) { |s| author = s[:author] ? (s[:author] + " ") : "" - line1 = "%{handle}%{date}%{author}committed %{title} @ %{link}" + line1 = "%{handle}%{date}%{author}committed %{title}%{at}%{link}" make_stream(line1, nil, s, :author => author) } @bot.register_filter(:forum, @outkey) { |s| @@ -353,7 +353,7 @@ class RSSFeedsPlugin < Plugin } @bot.register_filter(:trac, @outkey) { |s| author = s[:author].sub(/@\S+?\s*>/, "@...>") + ": " if s[:author] - line1 = "%{handle}%{date}%{author}%{title} @ %{link}" + line1 = "%{handle}%{date}%{author}%{title}%{at}%{link}" line2 = nil unless s[:item].title =~ /^(?:Changeset \[(?:[\da-f]+)\]|\(git commit\))/ line2 = "%{handle}%{date}%{desc}" |