]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
utils: fixed secs_to_string output for one-element arrays
authorJay Thomas <degradinglight@gmail.com>
Thu, 25 Apr 2013 03:05:59 +0000 (23:05 -0400)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Thu, 25 Apr 2013 04:48:17 +0000 (06:48 +0200)
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