3
0
mirror of https://github.com/reality/dbot.git synced 2024-12-27 05:02:36 +01:00

Update words.js

This commit is contained in:
Luke Slater 2014-11-30 03:56:25 +00:00
parent 2d8a1da470
commit f8cfc04ab2

View File

@ -65,7 +65,7 @@ var words = function(dbot) {
if(!err && word) { if(!err && word) {
this.wn.definitions(encodeURIComponent(word.word), function(err, defs) { this.wn.definitions(encodeURIComponent(word.word), function(err, defs) {
if(!err && defs[0]) { if(!err && defs[0]) {
if(!String(defs[0]).match(/plural/i)) { if(defs[0].text.match(/plural/i)) {
event.reply(dbot.t('def', { event.reply(dbot.t('def', {
'word': word.word, 'word': word.word,
'definition': defs[0].text 'definition': defs[0].text