diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-09-18 11:04:58 +0000 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-09-18 11:04:58 +0000 |
commit | 2ae1ebd078958ab0b09cf611ec4bea00607e1d91 (patch) | |
tree | 3671bb0222ebc912f4c73767962c6b4bacd4bb05 /lib/rbot | |
parent | e6558c5cd4181e0ab2247b08fc9bfb4602610e00 (diff) |
Hpricot first par: it's el[:class], not el.class
Diffstat (limited to 'lib/rbot')
-rw-r--r-- | lib/rbot/core/utils/utils.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |