From f0398fe8fc883b0db2355dff2c3ba280a982bb07 Mon Sep 17 00:00:00 2001 From: reality Date: Sat, 29 Nov 2014 05:03:25 +0000 Subject: [PATCH] like --- 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 ecf3c13..cd028f5 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(!defs[0].match(/plural/i)) { + if(!defs[0].toString().match(/plural/i)) { event.reply(dbot.t('def', { 'word': word.word, 'definition': defs[0].text