summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-09-18 06:15:56 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-09-18 06:15:56 +0000
commit265b4987ca6c73b94fbac060cf43bd31fe021aaa (patch)
tree0bc3c1cdd65468616bd26672a18dbd268d19d098 /lib
parentf9b22f53301e5dcb9078aa13efe3dbe93eca0ea5 (diff)
HTML processing refactoring: fix options passed by Utils.get_string_html_info to ircify_first_html_par
Diffstat (limited to 'lib')
-rw-r--r--lib/rbot/core/utils/utils.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/rbot/core/utils/utils.rb b/lib/rbot/core/utils/utils.rb
index a9844d6b..08809fa0 100644
--- a/lib/rbot/core/utils/utils.rb
+++ b/lib/rbot/core/utils/utils.rb
@@ -736,7 +736,9 @@ module ::Irc
fragreg = /.*?<a\s+[^>]*name=["']?#{frag}["']?.*?>/im
txt.sub!(fragreg,'')
end
- content = Utils.ircify_first_html_par(txt, :strip => title)
+ c_opts = opts.dup
+ c_opts[:strip] ||= title
+ content = Utils.ircify_first_html_par(txt, c_opts)
content = nil if content.empty?
return {:title => title, :content => content}
end