i am retard

This commit is contained in:
reality 2013-01-24 10:06:56 +00:00
parent 68f78cad9c
commit 2e8d25aea4

View File

@ -39,7 +39,7 @@ var link = function(dbot) {
request(reqUrl, function(error, response, body) {
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(query + ': ' + result.list[0].definition.split('\n')[0]);
} else {
event.reply(event.user + ': No definition found.');
}