diff options
author | Jay Thomas <degradinglight@gmail.com> | 2013-04-24 23:05:59 -0400 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2013-04-25 06:48:17 +0200 |
commit | 318c87a0659c1aa6da5f6b0b82c15de65f86f513 (patch) | |
tree | 0224590681c7b5301306992aae4b847ba1f8f44a | |
parent | 012f94c76e3571d8e610810899fb2bda5643fc01 (diff) |
utils: fixed secs_to_string output for one-element arrays
-rw-r--r-- | lib/rbot/core/utils/utils.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |