summaryrefslogtreecommitdiff
path: root/data/rbot
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-03-24 11:26:35 +0100
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-03-24 11:26:35 +0100
commita70a0879fe06aaa9c45cacc04a34e64185e5168b (patch)
tree1c0d84ce0b621d91956e831d5da4d7d7159a66df /data/rbot
parent41fba3fa34d46c77dbfb580fc3a8c737d68eafde (diff)
slashdot plugin: fix title handling in htmlinfo filter
Diffstat (limited to 'data/rbot')
-rw-r--r--data/rbot/plugins/slashdot.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/data/rbot/plugins/slashdot.rb b/data/rbot/plugins/slashdot.rb
index 657cc009..71411458 100644
--- a/data/rbot/plugins/slashdot.rb
+++ b/data/rbot/plugins/slashdot.rb
@@ -23,8 +23,9 @@ class SlashdotPlugin < Plugin
h = Hpricot(s[:text])
# If we have no title tag in a head tag, return as this is not
# a /. page (it's probably a Slashdot RSS
- return nil if h/"head/title".empty?
- title = (h/"head/title").first.to_html.ircify_html
+ ht = h/"head/title"
+ return nil if ht.empty?
+ title = ht.first.to_html.ircify_html
arts = (h/"div.article")
return nil if arts.empty?
if arts.length > 1