This commit is contained in:
reality 2014-11-29 05:03:25 +00:00
parent 42b8b1f6ba
commit f0398fe8fc

View File

@ -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