summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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