mirror of
https://github.com/reality/dbot.git
synced 2024-12-28 05:32:50 +01:00
dont bother with titles if they are too long
This commit is contained in:
parent
e648068b1c
commit
57977ac182
@ -14,7 +14,7 @@ var link = function(dbot) {
|
||||
if(!error && response.statusCode == 200) {
|
||||
body = body.replace(/(\r\n|\n\r|\n)/gm, " ");
|
||||
var title = body.valMatch(/<title>(.*)<\/title>/, 2);
|
||||
if(title) {
|
||||
if(title && title.length < 140) {
|
||||
event.reply(title[1]);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user