diff options
Diffstat (limited to 'data/rbot')
-rw-r--r-- | data/rbot/plugins/slashdot.rb | 5 |
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 |