From e667d95ca825474e817c44ebc83bcb2e67cacc0e Mon Sep 17 00:00:00 2001 From: reality Date: Fri, 12 Apr 2013 18:33:49 +0000 Subject: [PATCH] Return correct head info is related result term is given by UD [Close #341] --- modules/link/link.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/link/link.js b/modules/link/link.js index 12adf09..6cfcd9b 100644 --- a/modules/link/link.js +++ b/modules/link/link.js @@ -84,7 +84,7 @@ var link = function(dbot) { try { var result = JSON.parse(body); if(_.has(result, 'result_type') && result.result_type != 'no_results') { - event.reply(query + ': ' + result.list[0].definition.split('\n')[0]); + event.reply(result.list[0].word + ': ' + result.list[0].definition.split('\n')[0]); } else { event.reply(event.user + ': No definition found.'); }