diff --git a/plugins/scrape.rb b/plugins/scrape.rb index fca01cb..fb6992e 100644 --- a/plugins/scrape.rb +++ b/plugins/scrape.rb @@ -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,