summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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