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