]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/blobdiff - lib/rbot/core/utils/utils.rb
utils: fixed secs_to_string output for one-element arrays
[user/henk/code/ruby/rbot.git] / lib / rbot / core / utils / utils.rb
index 7b316ffe28cd3df6ffc6ecd0d1707063142dd1bb..119e1a0aa8c1f5a4e7517f0938cedec14742301a 100644 (file)
@@ -198,7 +198,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