From 265b4987ca6c73b94fbac060cf43bd31fe021aaa Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Tue, 18 Sep 2007 06:15:56 +0000 Subject: HTML processing refactoring: fix options passed by Utils.get_string_html_info to ircify_first_html_par --- lib/rbot/core/utils/utils.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib') 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 = /.*?]*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 -- cgit v1.2.3