diff --git a/modules/autoshorten.js b/modules/autoshorten.js index 6f2f408..6af1a8b 100644 --- a/modules/autoshorten.js +++ b/modules/autoshorten.js @@ -11,8 +11,8 @@ var autoshorten = function(dbot) { if(urlMatches !== null) { var url = urlMatches[0]; // Only doing one, screw you. - var site = http.createClient(80, 'http://nc.no.de'); - var request = site.request("GET", 'mkurl', { 'host' : 'http://nc.no.de/', + var site = http.createClient(80, 'nc.no.de'); + var request = site.request("GET", 'mkurl', { 'host' : 'nc.no.de/', 'url': url}); request.end();