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(); dedupeIps();
this.by = by; this.by = by;
this.at = at; this.at = at;
if (expire == null)
{
expire = FUtil.parseDateOffset("24h");
}
this.expiryUnix = FUtil.getUnixTime(expire); this.expiryUnix = FUtil.getUnixTime(expire);
this.reason = reason; this.reason = reason;
} }