More info command improvements.

This commit is contained in:
Erik C. Thauvin 2016-07-04 15:15:10 -07:00
commit 7a50ac88ac
2 changed files with 3 additions and 7 deletions

View file

@ -1139,16 +1139,14 @@ public class Mobibot extends PircBot
timeInSeconds -= (years * 31540000L);
}
final long weeks = timeInSeconds / 604800L;
if (weeks > 0)
{
info.append(weeks).append(Utils.plural(weeks, " week ", " weeks "));
timeInSeconds -= (weeks * 604800L);
}
final long days = timeInSeconds / 86400L;
if (days > 0)
@ -1157,7 +1155,6 @@ public class Mobibot extends PircBot
timeInSeconds -= (days * 86400L);
}
final long hours = timeInSeconds / 3600L;
if (hours > 0)
@ -1166,7 +1163,6 @@ public class Mobibot extends PircBot
timeInSeconds -= (hours * 3600L);
}
final long minutes = timeInSeconds / 60L;
info.append(minutes).append(Utils.plural(minutes, " minute ", " minutes "));