From d77565a04ae50fceb36c6db4d49dd5afae706d28 Mon Sep 17 00:00:00 2001 From: reality Date: Mon, 20 May 2013 15:24:24 +0000 Subject: [PATCH] fix link title --- modules/link/link.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/link/link.js b/modules/link/link.js index ac91083..2ce7e56 100644 --- a/modules/link/link.js +++ b/modules/link/link.js @@ -52,7 +52,7 @@ var link = function(dbot) { link = urlMatches[0]; } } - this.fetchTitle(link, function(title) { + this.api.getTitle(link, function(title) { event.reply(title); }); }, @@ -123,7 +123,7 @@ var link = function(dbot) { } } if(!handlerFound) { - this.fetchTitle(urlMatches[0], function(title) { + this.api.getTitle(urlMatches[0], function(title) { event.reply(title); }); }