From f8cfc04ab213ace4a72785e55c1b2e243e33629e Mon Sep 17 00:00:00 2001 From: Luke Slater Date: Sun, 30 Nov 2014 03:56:25 +0000 Subject: [PATCH] Update words.js --- modules/words/words.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/words/words.js b/modules/words/words.js index 4604eee..4c8768f 100644 --- a/modules/words/words.js +++ b/modules/words/words.js @@ -65,7 +65,7 @@ var words = function(dbot) { if(!err && word) { this.wn.definitions(encodeURIComponent(word.word), function(err, defs) { if(!err && defs[0]) { - if(!String(defs[0]).match(/plural/i)) { + if(defs[0].text.match(/plural/i)) { event.reply(dbot.t('def', { 'word': word.word, 'definition': defs[0].text