From 134f2b76bbab371f2465cc9e99844bfbadc235b4 Mon Sep 17 00:00:00 2001 From: reality Date: Thu, 4 Jul 2013 23:20:09 +0000 Subject: [PATCH] fix web link api call for ~link --- modules/quotes/commands.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/quotes/commands.js b/modules/quotes/commands.js index cc8b53b..97229ad 100644 --- a/modules/quotes/commands.js +++ b/modules/quotes/commands.js @@ -361,7 +361,7 @@ var commands = function(dbot) { category = result; }, function(err) { if(category) { - if(_.has(dbot.config, 'web') && _.has(dbot.config.web, 'webHost')) { + if(_.has(dbot.modules, 'web')) { event.reply(dbot.t('quote_link', { 'category': key, 'url': dbot.api.web.getUrl('quotes/' + encodeURIComponent(key))