mirror of
https://github.com/reality/dbot.git
synced 2024-12-04 18:09:30 +01:00
fix link title
This commit is contained in:
parent
1f1287554f
commit
d77565a04a
@ -52,7 +52,7 @@ var link = function(dbot) {
|
|||||||
link = urlMatches[0];
|
link = urlMatches[0];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.fetchTitle(link, function(title) {
|
this.api.getTitle(link, function(title) {
|
||||||
event.reply(title);
|
event.reply(title);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@ -123,7 +123,7 @@ var link = function(dbot) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(!handlerFound) {
|
if(!handlerFound) {
|
||||||
this.fetchTitle(urlMatches[0], function(title) {
|
this.api.getTitle(urlMatches[0], function(title) {
|
||||||
event.reply(title);
|
event.reply(title);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user