total ||= rv.size
- return m.reply "#{Bold}#{word}#{Bold} not found" if rv.empty?
+ return m.reply("#{Bold}#{word}#{Bold} not found") if rv.empty?
if notfound
- suggestions = rv.map { |s| "#{Underline}#{s[1]}#{Underline}" }.join(', ')
+ suggestions = rv.map { |s| Underline + s[1] + Underline }.uniq.join ', '
m.reply "#{Bold}#{word}#{Bold} not found. maybe you mean #{suggestions}?"
return
end