mirror of
https://github.com/reality/dbot.git
synced 2024-11-27 14:29:29 +01:00
Actually fix [#335]
This commit is contained in:
parent
6134f97a97
commit
d8342f4489
@ -14,7 +14,7 @@ var link = function(dbot) {
|
||||
this.fetchTitle = function(event, link) {
|
||||
var limit = 1000000,
|
||||
size = 0,
|
||||
page = request(link, function(error, response, body) {
|
||||
page = request(link.replace('https', 'http'), function(error, response, body) {
|
||||
if(!error && response.statusCode == 200) {
|
||||
body = body.replace(/(\r\n|\n\r|\n)/gm, " ");
|
||||
var title = body.valMatch(/<title>(.*)<\/title>/, 2);
|
||||
|
Loading…
Reference in New Issue
Block a user