From 39d3021870cefc350d1a72241ce2cbfd4662fd7d Mon Sep 17 00:00:00 2001 From: Luke Slater Date: Mon, 16 Apr 2012 00:23:13 +0100 Subject: [PATCH] autoshorten threshold 80 --- modules/autoshorten.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/autoshorten.js b/modules/autoshorten.js index 0598ce9..02be309 100644 --- a/modules/autoshorten.js +++ b/modules/autoshorten.js @@ -11,7 +11,7 @@ var autoshorten = function(dbot) { var urlRegex = /(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/ig; var urlMatches = data.message.match(urlRegex); - if(urlMatches !== null && urlMatches[0].length > 65) { + if(urlMatches !== null && urlMatches[0].length > 80) { var url = urlMatches[0]; // Only doing one, screw you. // TODO: Make this use a decent URL shortener. Mine is shit.