summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/scrape.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/scrape.rb b/plugins/scrape.rb
index 3cc5ada..0e863d5 100644
--- a/plugins/scrape.rb
+++ b/plugins/scrape.rb
@@ -45,7 +45,7 @@ Client.register_trigger("PRIVMSG") do |msg|
url = Digest::MD5.hexdigest(word)
end
- title = Nokogiri::HTML(open(word).read(10240)).title().delete("\n")
+ title = Nokogiri::HTML(open(word).read(10240)).title().gsub(/[\s]+/, " ").strip
Scrape::Link.create(
:url => url,