3
0
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:
Luke Slater 2013-01-05 17:00:45 +01:00
parent c22b7a24da
commit bbe6a540be

View File

@ -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'));
} }
} }
}); });