From b008f284067ba303702aa253b5ab941920332f70 Mon Sep 17 00:00:00 2001 From: reality Date: Fri, 27 Dec 2013 16:35:04 +0000 Subject: [PATCH] wow --- modules/words/words.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/words/words.js b/modules/words/words.js index e980115..b7eab52 100644 --- a/modules/words/words.js +++ b/modules/words/words.js @@ -16,9 +16,8 @@ var words = function(dbot) { '~etymology': function(event) { var query = event.params[1]; this.wn.etymologies(encodeURIComponent(query), function(err, defs) { - console.log(defs); if(!err && defs[0]) { - event.reply(query + ' etymology: ' + defs[0].text); + event.reply(query + ' etymology: ' + defs[0].replace(/<\/?[^>]+(>|$)/g, ""); } else { event.reply('No etymology found for ' + query); }