yet another small fix.

master
Robert Gerus 2014-03-25 18:02:51 +01:00
parent 1ac5354843
commit 29093d92b7
1 changed files with 2 additions and 1 deletions

View File

@ -45,7 +45,8 @@ Client.register_trigger("PRIVMSG") do |msg|
url = Digest::MD5.hexdigest(word)
end
title = Nokogiri::HTML(open(word).read(10240)).title().gsub(/[\s]+/, " ").strip
title = Nokogiri::HTML(open(word).read(10240)).title()
title = title.gsub(/[\s]+/, " ").strip if not title.nil?
Scrape::Link.create(
:url => url,