summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/rbot/core/utils/utils.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rbot/core/utils/utils.rb b/lib/rbot/core/utils/utils.rb
index 9b678def..80f779e9 100644
--- a/lib/rbot/core/utils/utils.rb
+++ b/lib/rbot/core/utils/utils.rb
@@ -488,7 +488,7 @@ module ::Irc
# Strip styles and scripts
(doc/"style|script").remove
- debug doc.inspect
+ debug doc
strip = opts[:strip]
strip = Regexp.new(/^#{Regexp.escape(strip)}/) if strip.kind_of?(String)
@@ -552,7 +552,7 @@ module ::Irc
# we don't need
if by_span.nil?
by_span = Hpricot::Elements[]
- doc.root.each("*") { |el|
+ doc.root.search("*") { |el|
by_span.push el if el.pathname =~ /^(?:div|span|td|tr|tbody|table)$/ and el[:class] =~ /body|message|text/i
}
debug "other \#1: found: #{by_span.pretty_inspect}"