fix 24 hour bans

This commit is contained in:
Seth
2020-09-29 23:54:17 -07:00
parent ac6e58ff9e
commit f8304aecd7

View File

@ -71,6 +71,10 @@ public class Ban
dedupeIps();
this.by = by;
this.at = at;
if (expire == null)
{
expire = FUtil.parseDateOffset("24h");
}
this.expiryUnix = FUtil.getUnixTime(expire);
this.reason = reason;
}