3
0
mirror of https://github.com/reality/dbot.git synced 2024-12-24 03:33:07 +01:00

give reasonable size limit [#332]

This commit is contained in:
reality 2013-03-25 18:26:13 +00:00
parent 6176dd5695
commit e9b4a9f112

View File

@ -11,7 +11,7 @@ var link = function(dbot) {
this.urlRegex = /(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/ig;
this.links = {};
this.fetchTitle = function(event, link) {
var limit = 25 * 1000,
var limit = 250 * 1000,
size = 0,
page = request(link, function(error, response, body) {
if(!error && response.statusCode == 200) {