]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/blobdiff - lib/rbot/core/utils/utils.rb
ensures the path reported by gems does exists
[user/henk/code/ruby/rbot.git] / lib / rbot / core / utils / utils.rb
index 7b316ffe28cd3df6ffc6ecd0d1707063142dd1bb..417622e43ea1cf65e13235971d66a228b4f4bcd6 100644 (file)
@@ -1,3 +1,4 @@
+# encoding: UTF-8
 #-- vim:sw=2:et
 #++
 #
@@ -198,7 +199,7 @@ module ::Irc
       when 0
         raise "Empty ret array!"
       when 1
-        return ret.to_s
+        return ret[0].to_s
       else
         return [ret[0, ret.length-1].join(", ") , ret[-1]].join(_(" and "))
       end