From 2ae1ebd078958ab0b09cf611ec4bea00607e1d91 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Tue, 18 Sep 2007 11:04:58 +0000 Subject: Hpricot first par: it's el[:class], not el.class --- lib/rbot/core/utils/utils.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/rbot') diff --git a/lib/rbot/core/utils/utils.rb b/lib/rbot/core/utils/utils.rb index 08809fa0..069c18c2 100644 --- a/lib/rbot/core/utils/utils.rb +++ b/lib/rbot/core/utils/utils.rb @@ -553,7 +553,7 @@ module ::Irc by_span = Hpricot::Elements[] pre_pars = doc/"div|span|td|tr|tbody|table" pre_pars.each { |el| - by_span.push el if el.class =~ /body|message|text/i + by_span.push el if el[:class] =~ /body|message|text/i } debug "other \#1: found: #{by_span.pretty_inspect}" end -- cgit v1.2.3