lib/Zeta/plugins/snooper.rb in zetabot-0.0.8 vs lib/Zeta/plugins/snooper.rb in zetabot-0.0.9
- old
+ new
@@ -127,10 +127,10 @@
m.max_history = 1
m.read_timeout = 4
m.max_file_buffer = 2_097_152
# Parse the HTML
- Timeout::timeout(10) { Nokogiri::HTML(m.get(url).content, nil, 'utf-8') }
+ Timeout::timeout(12) { Nokogiri::HTML(m.get(url).content, nil, 'utf-8') }
}
# Reply Blocks
if node = html.at_xpath("html/head/title")
msg.reply("‡ #{node.text.lstrip.gsub(/\r|\n|\n\r/, ' ')[0..300]}")