diff --git a/modules/link/link.js b/modules/link/link.js index 9d24134..4d27ef9 100644 --- a/modules/link/link.js +++ b/modules/link/link.js @@ -126,7 +126,7 @@ var link = function(dbot) { var urlMatches = event.message.match(this.urlRegex); if(urlMatches !== null) { this.links[event.channel.name] = urlMatches[0]; - if(dbot.config.link.autoTitle == true) { + if(this.config.autoTitle == true) { var handlerFound = false; for(var i=0;i