fix web link api call for ~link

This commit is contained in:
reality 2013-07-04 23:20:09 +00:00
parent eec997a0ac
commit 134f2b76bb

View File

@ -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))