3
0
mirror of https://github.com/reality/dbot.git synced 2024-12-24 11:42:36 +01:00

lets try that

This commit is contained in:
reality 2013-10-23 10:00:40 +00:00
parent 9369fd8d05
commit 4537651367

View File

@ -39,8 +39,8 @@ var youtube = function(dbot) {
'seconds': seconds
});
var link = v.link[0].href.match(this.LinkRegex)
if(!_.isUndefined(link)) {
var link = v.link[0].href.match(this.LinkRegex);
if(link) {
res += ' - http://youtu.be/' + link[2];
}