summaryrefslogtreecommitdiff
path: root/data/rbot
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2009-03-11 19:56:56 +0100
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2009-03-11 19:56:56 +0100
commitdefb429a1e8edcef13f54486490770eebae80468 (patch)
tree83ea55947cb0aac6d3b993fbe1d342aed7831f86 /data/rbot
parentd4e270a32155591a8ad7c27cd66fc9d43706f073 (diff)
rss: more detailed forum type
Diffstat (limited to 'data/rbot')
-rw-r--r--data/rbot/plugins/rss.rb7
1 files changed, 5 insertions, 2 deletions
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}"