]> jfr.im git - irc/rizon/acid.git/commitdiff
Fix format error in VIP command reply
authorOrillion <redacted>
Wed, 19 Apr 2017 16:47:20 +0000 (18:47 +0200)
committerOrillion <redacted>
Wed, 19 Apr 2017 16:48:02 +0000 (18:48 +0200)
- Util.ftime() returns with trailing and/or leading space(s)

vizon/src/main/java/net/rizon/acid/plugins/vizon/commands/VipCommand.java

index 1cbe612c37ab2cad5a2dd6b4e8d9e4fc2c22bbbf..04cb5176c0644e46f98ab2b93e580e72bb3ad281 100644 (file)
@@ -86,7 +86,7 @@ public class VipCommand extends Command
                else
                {
                        Duration remaining = Duration.between(LocalDateTime.now(), user.getObtained().plusDays(user.getDays()));
-                       String remainingTime = Util.fTime((int) remaining.getSeconds());
+                       String remainingTime = Util.fTime((int) remaining.getSeconds()).trim();
 
                        Acidictive.reply(source, to, c, String.format(
                                        VIP_FORMAT,