limit url size.

master
Robert Gerus 2014-03-13 15:34:19 +01:00
parent ae15105961
commit 28277cb42e
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ Client.register_trigger("PRIVMSG") do |msg|
url = Digest::MD5.hexdigest(word)
end
title = Nokogiri::HTML(open(word).read).title().split(/\n/)[0]
title = Nokogiri::HTML(open(word).read(10240).title().split(/\n/)[0][
Scrape::Link.create(
:url => url,