From defb429a1e8edcef13f54486490770eebae80468 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Wed, 11 Mar 2009 19:56:56 +0100 Subject: rss: more detailed forum type --- data/rbot/plugins/rss.rb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'data') diff --git a/data/rbot/plugins/rss.rb b/data/rbot/plugins/rss.rb index 30d09bd3..510db009 100644 --- a/data/rbot/plugins/rss.rb +++ b/data/rbot/plugins/rss.rb @@ -366,8 +366,11 @@ class RSSFeedsPlugin < Plugin make_stream(line1, nil, s, :author => author) } @bot.register_filter(:forum, @outkey) { |s| - line1 = "%{handle}%{date}%{title}%{at}%{link}" - make_stream(line1, nil, s) + author = s[:author] ? (s[:author] + " ") : "" + abt = s[:category] ? "on #{s[:category]} " : "" + line1 = "%{handle}%{date}%{author}posted %{abt}at %{link}" + line2 = "%{handle}%{title} - %{desc}" + make_stream(line1, line2, s, :author => author, :abt => abt) } @bot.register_filter(:wiki, @outkey) { |s| line1 = "%{handle}%{date}%{title}%{at}%{link}" -- cgit v1.2.3