From 318c87a0659c1aa6da5f6b0b82c15de65f86f513 Mon Sep 17 00:00:00 2001 From: Jay Thomas Date: Wed, 24 Apr 2013 23:05:59 -0400 Subject: [PATCH] utils: fixed secs_to_string output for one-element arrays --- lib/rbot/core/utils/utils.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rbot/core/utils/utils.rb b/lib/rbot/core/utils/utils.rb index 7b316ffe..119e1a0a 100644 --- a/lib/rbot/core/utils/utils.rb +++ b/lib/rbot/core/utils/utils.rb @@ -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 -- 2.39.2