fix 24 hour bans

This commit is contained in:
Seth 2020-09-29 23:54:17 -07:00
parent ac6e58ff9e
commit f8304aecd7
No known key found for this signature in database
GPG key ID: A7BAB4E14F089CF3

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;
}