loc = Utils.check_location(s, /slashdot\.org/)
return nil unless loc
h = Hpricot(s[:text])
- title = (h/"head/title").first.to_html.ircify_html
+ # If we have no title tag in a head tag, return as this is not
+ # a /. page (it's probably a Slashdot RSS
+ 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
tits = []
arts.each { |el|