From 2d8a1da4702798ee5d99302c95260b5895daa5a2 Mon Sep 17 00:00:00 2001 From: reality Date: Sat, 29 Nov 2014 05:10:34 +0000 Subject: [PATCH] like --- 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 41eee0c..4604eee 100644 --- a/modules/words/words.js +++ b/modules/words/words.js @@ -65,8 +65,7 @@ var words = function(dbot) { if(!err && word) { this.wn.definitions(encodeURIComponent(word.word), function(err, defs) { if(!err && defs[0]) { - console.log(defs[0].toString()); - if(!defs[0].toString().match(/plural/i)) { + if(!String(defs[0]).match(/plural/i)) { event.reply(dbot.t('def', { 'word': word.word, 'definition': defs[0].text