mirror of
https://github.com/reality/dbot.git
synced 2024-12-25 04:02:39 +01:00
Update modules/link/link.js
no title found shut up omg
This commit is contained in:
parent
c22b7a24da
commit
bbe6a540be
@ -14,8 +14,6 @@ var link = function(dbot) {
|
|||||||
var title = body.valMatch(/<title>(.*)<\/title>/, 2);
|
var title = body.valMatch(/<title>(.*)<\/title>/, 2);
|
||||||
if(title) {
|
if(title) {
|
||||||
event.reply(title[1]);
|
event.reply(title[1]);
|
||||||
} else {
|
|
||||||
event.reply(dbot.t('title_not_found'));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user