summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Kim <dmitry point kim at gmail point com>2007-11-24 16:29:58 +0000
committerDmitry Kim <dmitry point kim at gmail point com>2007-11-24 16:29:58 +0000
commit1ff0b683756532ff07023a7c17529c6a32cd3e99 (patch)
tree6ec9211750a1576b0697e2036a048f29930e6278
parent180a824d1785af606b20ce630b8df46f368f1d83 (diff)
* (plugins/urban) filter urbandictionary suggestion via uniq()
-rw-r--r--data/rbot/plugins/urban.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/data/rbot/plugins/urban.rb b/data/rbot/plugins/urban.rb
index b8177e65..5aae26c6 100644
--- a/data/rbot/plugins/urban.rb
+++ b/data/rbot/plugins/urban.rb
@@ -35,7 +35,7 @@ class UrbanPlugin < Plugin
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