summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-09-18 12:06:50 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-09-18 12:06:50 +0000
commitb300dc765bdc74f77705a92092d5a36ec234b187 (patch)
treedfd0def5a7cc6a7211f458a8234383255e9f1c79 /data
parent2220250c49c13c45f56f4336a56fbea54bb74fc9 (diff)
dict plugin: fix demauro word existence check
Diffstat (limited to 'data')
-rw-r--r--data/rbot/plugins/dict.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/data/rbot/plugins/dict.rb b/data/rbot/plugins/dict.rb
index 7db8c004..be7923a2 100644
--- a/data/rbot/plugins/dict.rb
+++ b/data/rbot/plugins/dict.rb
@@ -73,7 +73,7 @@ class DictPlugin < Plugin
entries = xml.scan(DEMAURO_LEMMA)
text = word
urls = []
- if !entries.assoc(word) and !entries.assoc(word.upcase)
+ if not entries.transpose.first.grep(/\b#{word}\b/)
return false if justcheck
text += " not found. Similar words"
end