summaryrefslogtreecommitdiff
path: root/lib/rbot
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-09-18 11:04:58 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-09-18 11:04:58 +0000
commit2ae1ebd078958ab0b09cf611ec4bea00607e1d91 (patch)
tree3671bb0222ebc912f4c73767962c6b4bacd4bb05 /lib/rbot
parente6558c5cd4181e0ab2247b08fc9bfb4602610e00 (diff)
Hpricot first par: it's el[:class], not el.class
Diffstat (limited to 'lib/rbot')
-rw-r--r--lib/rbot/core/utils/utils.rb2
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